Skip to content

Commit

Permalink
SHIBUI-1983
Browse files Browse the repository at this point in the history
fixes for long type conversion
  • Loading branch information
chasegawa committed Jun 30, 2021
1 parent 7c249c3 commit 27f2633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ public EntityDescriptorRepresentation createRepresentationFromDescriptor(org.ope
Object attributeValues = null;
switch (ModelRepresentationConversions.AttributeTypes.valueOf(overrideProperty.getDisplayType().toUpperCase())) {
case STRING:
case LONG:
case DOUBLE:
case DURATION:
case SPRING_BEAN_ID:
Expand All @@ -659,7 +660,6 @@ public EntityDescriptorRepresentation createRepresentationFromDescriptor(org.ope
attributeValues = getValueFromXMLObject(jpaAttribute.getAttributeValues().get(0));
break;
case INTEGER:
case LONG:
if (jpaAttribute.getAttributeValues().size() != 1) {
throw new RuntimeException("Multiple/No values detected where one is expected!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public enum AttributeTypes {
LIST,
DOUBLE, // no org.opensaml.core.xml.schema.XSTYPE - will treat as STRING
DURATION, // no org.opensaml.core.xml.schema.XSTYPE - will treat as STRING
LONG, // no org.opensaml.core.xml.schema.XSTYPE - will treat as INTEGER for generating XML
LONG, // no org.opensaml.core.xml.schema.XSTYPE - will treat as STRING for generating XML
SELECTION_LIST, // another name for LIST
SPRING_BEAN_ID // treat as STRING
}
Expand Down

0 comments on commit 27f2633

Please sign in to comment.