-->
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.  [ 6 posts ] 
Author Message
 Post subject: many-to-many work-around?
PostPosted: Fri Feb 24, 2006 3:34 pm 
Newbie

Joined: Fri Feb 24, 2006 2:00 pm
Posts: 4
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3
Name and version of the database you are using: postgres 7.4

Refering to the previous posts (this one and this one), it was mentioned that there was a workaround for the many-to-many issue currently in the hbm2hbmxml mapping. that being that in a situation where a database structure looks like:

(A) <- (AXB) -> (B)

the AXB table will be set up as its own hbm.xml entity instead of understood as a many-to-many relationship between A and B. could you lead me into the direction of what this workaround is, and how'd i would implement it? i really don't want to edit these files by hand, as it would defeat a large part of the purpose why i'm trying to use these tools. i'm pretty new to hibernate, so as much information as possible would help.

thanks,
nikhil


Top
 Profile  
 
 Post subject: RE: many-to-many work-around?
PostPosted: Mon Apr 24, 2006 10:49 am 
Newbie

Joined: Tue Jan 31, 2006 2:29 pm
Posts: 12
I'm finding tools to generate many-to-many associations too. I hope this is very important.
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 24, 2006 2:58 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
don't know of any workaround.

and no, it is not on my high priority list. If it is so important for you guys i recommend you contribute a patch - i'll for sure apply it if it works.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: RE: many-to-many work-around?
PostPosted: Tue May 02, 2006 3:28 am 
Regular
Regular

Joined: Mon Mar 06, 2006 6:18 am
Posts: 95
Location: Bern, Switzerland
RWagnerVM wrote:
I'm finding tools to generate many-to-many associations too. I hope this is very important.
Thanks


did you find any workaround?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 10:54 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Middlegen can do Many-to-many as well as one-to-one. I am not sure I would call it a workaround and you should consider it carefully but its an option while the Tools are updated to include this as an option.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 10:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You could consider sponsoring me to add it. It will get done at some point but you can speed the process up with a sponsership.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.