-->
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: @ManyToMany Sequence Generator
PostPosted: Mon Jun 22, 2009 7:16 am 
Newbie

Joined: Sat Jun 13, 2009 2:57 pm
Posts: 3
Hi,

Is there a way to describe a generated id value to @ManyToMany annotation?

For example:
I have a table A and table B, and a table A-B which holds many-to-many relations between A and B. In addition
A-B table has a generated id field. I could not find a way to specify this generated id value in the annotations.


Top
 Profile  
 
 Post subject: Re: @ManyToMany Sequence Generator
PostPosted: Mon Jun 22, 2009 9:40 am 
Newbie

Joined: Sat Jun 13, 2009 2:57 pm
Posts: 3
I found a solution by using @CollectionId annotation. But is there any corresponding jpa annotation for this hibernate annotation?

Thanks in advance.


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.