-->
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: What are all these Middlegen files?
PostPosted: Mon Jan 26, 2004 7:50 am 
Beginner
Beginner

Joined: Mon Nov 24, 2003 12:44 pm
Posts: 40
When I generate my hbm.xml files using Middlegen, I get a number of files...

e.g. From my PERSON table, I get the following...

Tbpperson.hbm.xml
Tbppersonh.hbm.xml
Tbppersoni.hbm.xml

which generate into...

Tbpperson.java
Tbppersonh.java
TbppersonhPK.java
Tbppersoni.java

Can anyone shed some light onto what purpose each of these files serve and whether actually need them. I presume the PK means primary key and because the 'i' files have less properties they could be some sort of index files but that's as far as it goes.

Regards
Chris


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2004 7:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Really hard to tell without knowing how your table and the generated mapping files look like.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 28, 2004 11:46 am 
Beginner
Beginner

Joined: Mon Nov 24, 2003 12:44 pm
Posts: 40
My mistake. The files generated are correct. I have just had it pointed out to me that the DB Schema had additional tables suffixed with I (Inforce) and H (History), which mapped to the i and h hbm.xml files output from middlegen.

P.S I wish middlegen had the option of using a smaller font and collapsing the tables to not show the non-key columns. My schema has 207 tables. The wiring in the middlegen diagram is like spaghetti!!! ;-)

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 28, 2004 11:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
P.S I wish middlegen had the option of using a smaller font and collapsing the tables to not show the non-key columns.


+1

:)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 28, 2004 6:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I hear you :-) - actually its a good idea. Hmmmm......I will take note of it and see what can come of it.


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.