-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to reverse engineer table from multiple schemas?
PostPosted: Wed Mar 08, 2006 6:47 pm 
Beginner
Beginner

Joined: Wed Nov 02, 2005 3:29 pm
Posts: 20
hibernate tools beta4

I need to reverse engineer tables that live under different
schemas.

I tried:

<table-filter match-name="NC_ORG_UNIT" match-schema="NTWKCOMP"/>
<table-filter match-name="DBA_ROLE_PRIVS" match-schema="SYS"/>

but I only got NC_ORG_UNIT.

Debuging a bit more it seems that the value

<property name="hibernate.default_schema">NTWKCOMP</property>

limits me to just one scheme.

Do I have to have two cfg/reveng xml files?

George


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 09, 2006 3:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
for this particular situation yes. In the next release there will be a different mechanism than looking at default_schema/catalog for specifying which schemas should be used as a a strating point..

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 07, 2007 1:49 pm 
Beginner
Beginner

Joined: Mon Jul 09, 2007 2:21 pm
Posts: 24
What if i had foreign key relationship between the tables in 2 different schemas?

How will i generate associations, if i have 2 reveng.xml and 2 cfg files?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 9:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
2 reveng.xml and 2 cfg files doesn't make sense.

N reveng.xml and 1 cfg file is ok - but N cfg files is not sensible.

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