-->
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: Problems with Hibernate tools and Derby DB
PostPosted: Mon Jul 02, 2007 6:40 pm 
Newbie

Joined: Mon Jul 02, 2007 6:29 pm
Posts: 3
Hello,
I am new in Hibernate 3 and Hibernate tools, I am using Hibernate 3.2.0 and derby 10.2.2 with hibernate tools in JBOSSIDE for Eclipse.......my problem is in the Hibernate Code Generation, when I want to generate my classes *.java and *.hbm.xml from my derby database, Hibernate tools generate them but it does not have any foreign key association, for example I have two tables with one-to-many relation, For example Country and City, a country can have many cities, so id_country is a foreign key in city (but not primary), and city has its own id_city, both integer, when I select the options in the Hibernate Code Generation, it generates my classes but with non relation between the 2 tables......... it puts on the City.hbm.xml and City.java the column id_country as an Integer and not as an Entity.....................I am desperate please somebody help me.........What should I do? or what am I doing wrong? I'm new in this....Thanks.................


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 29, 2008 8:33 am 
Newbie

Joined: Thu Feb 28, 2008 12:18 pm
Posts: 10
Still this problem exists for me also.. I think this is a bug..


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.