-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: ElementCollection and collection contracts
PostPosted: Sat Jan 29, 2011 7:55 am 
Newbie

Joined: Thu Jan 24, 2008 4:45 am
Posts: 13
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.