-->
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: FK 'hints' in reverse engineering?
PostPosted: Mon Jun 15, 2009 12:15 pm 
Newbie

Joined: Mon Jun 15, 2009 11:58 am
Posts: 1
(Note: I'm a hibernate neophyte, apologies if my vocabulary is off)

I'm using Hibernate to pull data from some data warehouse tables that are fed by an ETL job. While there are relationships in the data, the schema in the database does not reflect that. Is there a way for me to provide the reverse engineering configuration file with 'hints' as to the relationship between tables and what fields should be used as FK's?

These are all either one-to-one or one-to-many relationships. If this is not possible, can I do the above with the hbm.xml files for the individual tables and generate code from that using the tools?

Thanks!


Top
 Profile  
 
 Post subject: Re: FK 'hints' in reverse engineering?
PostPosted: Mon Jun 29, 2009 9:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes - read the docs about reveng.xml which is used to give "hints" to the reverse engineering.

_________________
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.