-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate Synchronizer generates hbm.xmls with error
PostPosted: Thu Oct 21, 2004 4:46 am 
Newbie

Joined: Thu Oct 21, 2004 3:30 am
Posts: 4
Hi!

Firstly I'd like to apologize for my bad English.

Secondly I have a serious problem. I use Eclipse 3.1M2, JDK 1.4, Hibernate Synchronizer 2.3.1, PostgreSQL 8.0 beta 3 server. And the problem is:

I have a database with approx. 280 tables and many connections between them. I use hibernate synchronizer to generate hbm.xml files and from them the java classes. I tried 5 or 6 postgre JDBC drivers to generate the hbm.xml files but all the time I encountered a bad generation of <set> tags of the xmls. It seems to me that synchronizer generates random amount of <set> tags and leaving out few one-to-many connections. I should have exactly 38 sets (many to one references between tables) but after the generation I had only 8 or 11 or 16 <set> tags. As I said if I regenerate with the same parameters (no changes applied) then I would get a different amount of <set> tags. I don't know really what's the reason of this misterious error. Maybe someone knows the answer. I hope you understand my problem. :)

Thanks for reading (and answering as well)

GHud


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 9:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I think you need to direct this question the the HibernateSynchroniser project lists/forum for a better chance of a helpfull response.

I would like to know if you have tried Middlegen on your dataset?
I'm sure (biased as I am) it will work as expected.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 22, 2004 2:30 am 
Newbie

Joined: Thu Oct 21, 2004 3:30 am
Posts: 4
Thanks for the advice. I thought I should try Middlegen. I hope it'll work correctly.

GHud


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 22, 2004 8:23 am 
Newbie

Joined: Thu Oct 21, 2004 3:30 am
Posts: 4
Hi again!


I tried with Middlegen and it worked correctly. I think Synchronizer generates the wrong hbm.xmls. Thanks for the advice.

GHud


Top
 Profile  
 
 Post subject: Missing hbm.xmls when generating class with joined-subclass
PostPosted: Thu Dec 02, 2004 7:53 am 
Newbie

Joined: Thu Oct 21, 2004 3:30 am
Posts: 4
Hi!

I have a problem with Hibernate / Hibernate Synchronizer again.

I have 3 tables called A, B, and C for example. I'd like to make joined-subclasses. A is the main table, B and C is mapped as joined subclasses in A's hbm.xml. When I generated hbm.xmls with Synchronizer the two joined-subclasses appeared in A.hbm.xml, but no B.hbm.xml or C.hbm.xml is generated. I have more tables connected with B and C. Without B and C's hbm.xmls I cannot generate .java classes for them, therefore the other tables cannot see B and C (but they are mapped in A). In A's .java class there no appearance of any subclasses for B and C.

What's the problem? Am I donig wrong something?

I hope you understand my problem. :)

GHud


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