-->
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: Forcing hbm2ddl to omit some tables in the generated schema
PostPosted: Fri Aug 10, 2007 9:05 am 
Beginner
Beginner

Joined: Tue Aug 17, 2004 5:06 am
Posts: 46
We hava a rather bizarre architecture here that splits the persistence layer into several modules, each with it's own mappings.

These modules are layered, meaning that my module depends on another module (that does not depend on mine) and both modules have their own mapping files.

My mapped objects have relations to the other modules' mapped objects, so I have to include these (foreign) mapping files in my Hibernate configuration.

So far, so good. But when I want to generate the schema using hbm2ddl I have to include these foreign mappings, too. Otherwise my mapping is incomplete.
But I just don't want that the generated script includes statements that affect the foreign layer. I just want a script that includes *my* tables.

Is there any way to achieve this ?


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.