Hello Hibernate users,
Can someone please explain or point me to some relevant documentation, why isn't collection type contract enforced when a collection of basic types (e.g. String) is mapped using @ElementCollection? Seems at the moment (jpa 2.0, hibernate 3.6.0) it doesn't matter if collection type is a List or a Set - same ddl is produced.
I'd expect when Set is used, that id/unique key over both join column (fk) and basic type column is created. And for List that an extra column to preserve order is used.
Thanks in advance!
Regards, Stevo.
|