/** * Create the right parameter values for * {@link FieldDescriptor#setCollection(FieldMappingCollectionType)} according * to given JPA specific information. * * @param jpaNature * The nature holding JPA information. * @return the right parameter values for * {@link FieldDescriptor#setCollection(FieldMappingCollectionType)}. */ private static FieldMappingCollectionType createColletionType( final JPAFieldNature jpaNature) { if (jpaNature.getRelationCollectionType() != null) { // OneToMany or ManyToMany String collectionTypeName = jpaNature.getRelationCollectionType() .getSimpleName().toLowerCase(); return FieldMappingCollectionType.fromValue(collectionTypeName); } return null; }
if (type != null && CollectionHandlers.hasHandler(type)) { String typeName = CollectionHandlers.getCollectionName(type); colType = FieldMappingCollectionType.fromValue(typeName);