-->
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: Can Hibernate 's hbm file inherit?
PostPosted: Fri Feb 25, 2005 12:24 am 
Newbie

Joined: Fri Feb 25, 2005 12:06 am
Posts: 1
Hibernate version: 2.1.7

we are using a database design tool (power designer actually) to generate schema ,and middlegen to generate hbm from the schema.We must keep the power designer file as a document, which is required by the management team, and need to deliver the reports generated by power designer to the customer.

We may alter the hbm to fit our needs, for example to map multiple class to single table and etc.

We feel pain when the schema changes: after add several fields in database, we will generate the hbm file again, so we can't keep our modification unchanged. Or, we have to modify the hbm file manually, which may intoduce errors, and it should be automatic.

I think, if we can split the information to 2 hbm, one for basic field mapping , one for further collection and class mapping, life will be much happier.

that means, when one field added, only the basic field mapping file will be generated, and since this is a full mapping , it can be automaticlly synchronized by some tool like middlegen or Hibernate Synchronizer. And we maintainence the collection mapping and class mapping manually.

Can it possible? Any suggustion is appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 10:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Sure it can be done. Standard XML supports importing. You will have to rework the Middlegen templates to generate it this way but thats the benefit of Open Source :-)


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.