-->
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: How do I define a custom column in the many-to-many table?
PostPosted: Fri Feb 18, 2005 12:03 am 
Newbie

Joined: Thu Feb 17, 2005 11:50 pm
Posts: 4
How do I specify a column in the automatically-generated table of a many-to-many relationship.

For example (using xdoclet):
In class Foo:
Code:
/**
@hibernate.set ...
@hibernate.collection-many-to-many
  table="Foo_Bar"
  class="com.mycompany.Bar"
@hibernate.collection-key ...
*/
public Set getBar() { ... }


How do I tell Hibernate create a column 'My_Value' in the table 'Foo_Bar'?

Is this even possible?

Any help would be appreciated.
-Trey


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.