EmbeddedCollection association = propertyFactory.createEmbeddedCollection(entity, context, property); PersistentEntity associatedEntity = getOrCreateEmbeddedEntity(entity, context, relatedClassType); association.setAssociatedEntity(associatedEntity); boolean many = false; if (embedded) { association = propertyFactory.createEmbeddedCollection(entity, context, property);
EmbeddedCollection association = propertyFactory.createEmbeddedCollection(entity, context, property); PersistentEntity associatedEntity = getOrCreateEmbeddedEntity(entity, context, relatedClassType); association.setAssociatedEntity(associatedEntity);