-->
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.  [ 2 posts ] 
Author Message
 Post subject: annotation exception
PostPosted: Sun Oct 12, 2008 12:31 pm 
Newbie

Joined: Sun Oct 12, 2008 12:18 pm
Posts: 3
Hello! I'm using Hibernate 3.0. Does anybody know, is it possible to use @IndexColumn and @CollectionId annotations togehter? When i try to do this, i get the following exception : org.hibernate.AnnotationException: List do not support @CollectionId and @IndexColumn at the same time. I have tried not only List, but Collection, Set, etc. - nothing works. Thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 04, 2009 4:58 am 
Newbie

Joined: Wed Mar 04, 2009 4:53 am
Posts: 1
Same problem here although I don't get an exception. Instead the @CollectionId annotation is just ignored.

Due to a schema constraint I always have a surrogate primary key on association tables. Now I'd like to add an index column to use List semantics but itdoesn't seem to be supported.

Couldn't find any mention of this use case in the docs. Are there any plans to support this mapping?

For now I'll have to map the association table as an entity. :(


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

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.