-->
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: Reverse engineering is not generating pojo for link table
PostPosted: Mon May 14, 2007 8:07 pm 
Newbie

Joined: Mon Apr 02, 2007 12:09 pm
Posts: 4
Hibernate Tools
Hibernate Version hibernate3.2.2.jar
Database Postgres 8.1

I am using reverse engineering to generate hbm files and pojos from database. I am having trouble with generating mapping and pojo files for link table.

Link table has two columns which point to pirmary keyws(pks) of two different tables as explained below.

I have table1 with pk1
I have table2 with pk2
I have many to many relationship table3 with two columns
col1 fk1 to pk1
col2 fk2 to pk2

How can I force the reverse engineering to create a pojo with two properties.

Thanks
Deepak

_________________
Deepak Pydimarry


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 1:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
disable many-to-many detection.

http://www.hibernate.org/hib_docs/tools ... e/#d0e1064

_________________
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.  [ 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.