migration changes
This commit is contained in:
parent
38da0e130d
commit
91f8998e1c
|
@ -167,7 +167,8 @@ public class DmpMigrationService {
|
|||
ExtraFieldEntity extraFieldEntity = (ExtraFieldEntity) fieldEntity;
|
||||
switch (extraFieldEntity.getType()){
|
||||
case Date -> valueEntity.setDateValue(Instant.parse((String) val));
|
||||
case RichTex, Text, Number -> valueEntity.setValue((String) val);
|
||||
case RichTex, Text -> valueEntity.setValue((String) val);
|
||||
case Number -> valueEntity.setNumberValue(Double.parseDouble((String) val));
|
||||
default -> throw new MyApplicationException("unrecognized type " + extraFieldEntity.getType().getValue());
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue