-->
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.  [ 1 post ] 
Author Message
 Post subject: Reveng and split code. How maintain references?
PostPosted: Tue Aug 31, 2010 2:48 pm 
Beginner
Beginner

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

I have several tables for different services. Each table has it's own prefix. But all of them are linked to a main one.

This way I have for example:

address_location: Prefix address_*
-> String location
-> String zoneCode
-> UUID uuid

lead: Prefix lead*
-> Key UUID uuid
-> String name

... etc ...


This way I can separate generation a process of address handling from the rest of the program.

The problem is that to do reveng updates I have something like this for address code:

Code:
    <table-filter match-name="address_.*" match-schema="public"
        exclude="false" />


This way I do not generate anything related to the other classes.

The problem is that code generated looks like:
Code:
public class AddressLocation  implements java.io.Serializable {


     private Integer idAddressLocation;
     private UuidUserType uuid;
    ...



While uuid should be a member of the class Lead. This happens because the class Lead* is exluded
and then references are not done.

This should look like this:
Code:
public class AddressLocation  implements java.io.Serializable {


     private Integer idAddressLocation;
     private Lead lead;
    ...


I really want to do reference but do not generate any of the class Lead* because they are generated in their own package.


So how can I do that?

Do I explain myself?

Thank you in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.