Using Hibernate 3.5.6 Final. I have a class marked @Embeddable and an entity class with a reference to the former with:
Code:
@ElementCollection
@JoinTable(name = "EmbeddedTable", joinColumns = @JoinColumn(name = "columnid"))
public Set<EmbeddedObject> getEmbeddedObjects() {
return _embeddedObjects;
}
Functions just fine when using StatefulSession but StatelessSession does not persist the embedded object when calling insert() on the containing entity. Since you can't pass an embedded object to persist, how can you use StatelessSession with embedded objects?
Thanks!