HHH-12135 - Support for AttributeConverters as CDI beans, fix method o.h.type.descriptor.java.EnumJavaTypeDescriptor#fromName(String)

This commit is contained in:
Andrea Boriero 2018-01-10 15:03:39 +00:00
parent 803b29fc1a
commit f8f1241c2b
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class EnumJavaTypeDescriptor<T extends Enum> extends AbstractTypeDescript
if ( relationalForm == null ) { if ( relationalForm == null ) {
return null; return null;
} }
return (T) Enum.valueOf( getJavaType(), relationalForm ); return (T) Enum.valueOf( getJavaType(), relationalForm.trim() );
} }
public String toName(T domainForm) { public String toName(T domainForm) {