-->
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: Disable class generation but maintain foreign keys, Howto?
PostPosted: Tue Apr 13, 2010 12:32 pm 
Beginner
Beginner

Joined: Tue Oct 20, 2009 6:28 am
Posts: 20
Hi there,

I'm building a system that's composed of separated parts (similar to plugins). Normally there is no inter-dependencies so code can be generated for each project with each custom reveng strategy.

But I found that at least one inter-dependency exists.

I have project accounting and project survey.

Survey takes care of polls
Accounting takes care about everything that must be accountable.

Survey has a foreign key in Accounting because it must be accountable.

But I found the only way to reveng the Survey structure is adding the table dependency of Accounting and then remove it because is already included in Accounting package.

Do I explain myself?


The question is:

What's the best way to let hibernate generate correct classes into Survey without really generate the dependant classes of Accounting?

Now I have something like


<table-filter match-name="survey_.*" match-schema="public" exclude="false"/>
<table-filter match-name="contact_record" match-schema="public" exclude="false"/>


And then I remove contact_record from survey project.

Thank you


Top
 Profile  
 
 Post subject: Re: Disable class generation but maintain foreign keys, Howto?
PostPosted: Wed Apr 14, 2010 6:09 am 
Beginner
Beginner

Joined: Tue Oct 20, 2009 6:28 am
Posts: 20
I'm wondering if
Code:
<foreign-key constraint-name="XXXX">

or
Code:
<column name="contactRecord"-->
   type="XXXX" />



Will do the trick...


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.