-->
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: Possible to override generated <classname>.hbm.xml?
PostPosted: Tue Feb 06, 2007 9:44 am 
Beginner
Beginner

Joined: Fri Jan 26, 2007 3:16 pm
Posts: 24
Hi, using the eclipse plugins, I do POJO generation using the following two files:

hibernate.cfg.xml
hibernate.reveng.xml

The reveng process builds from JDBC metadata.

Now it creates POJO with annotations, and also generates (classname).hbm.xml.

I need better control over the mappings, but I want to keep the reveng process in place.

Correct me if I'm wrong, but I think the hbm.xml files will override any java annotations with Hibernate? Is that the case?

If so, is there a way I can add my own global.hbm.xml such that it will override settings in a generated (classname).hbm.xml?

I want to change certain aspects of the mappings that I can't seem to do with the reveng.xml.

Thanks in advance,
Davis


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 5:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why would you want to generate both hbm.xml and annotations ?

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