-->
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.  [ 4 posts ] 
Author Message
 Post subject: M:M mappings with generated POJOs (Hibernate Tools 3.0alpha)
PostPosted: Thu Mar 10, 2005 7:15 pm 
Newbie

Joined: Thu Mar 10, 2005 7:01 pm
Posts: 2
Hibernate version: Hibernate 3.0 rc 1 (28.02.2005)
Hibernate Tools 3.0 alpha 1 (24.01.2005) testing

Name and version of the database you are using: MySql 4.1.9


I'm using Eclipse 3.0 (M1) and the Hibernate Tools to generate my POJOs. It's working great, but the M:M relationships were mapped as a 1:M and a M:1, rather than a true <many-to-many> as I expected.
And a 'join' class is created.

How do I get it to correctly map a <many-to-many>? I'd much rather have the M:M as I'm used to seeing.

I am using a join/Associative table in the DB (between the two M:M tables).

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 11, 2005 9:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
issue already in jira.

we will add automatic recognition of many to many for tables that only consists of two foreign key references.

for more "fancy" recognition/customization we dont have it planned.

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 11, 2006 6:43 pm 
Newbie

Joined: Thu May 18, 2006 10:00 am
Posts: 12
I do not see this working in 3.2beta6. I'm running against mysql 4.1.14-nt and I'm still seeing the join tables created even though they only have 2 foreign key columns.
Does anyone know the jira id for this issue?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 12, 2006 1:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
noone contributed it yet.

i can't remember the case, but search in jira for many-to-many in hibernate-tools on our jira.

_________________
Max
Don't forget to rate


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