-->
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.  [ 7 posts ] 
Author Message
 Post subject: How to exclude tables from SchemaExport?
PostPosted: Tue Sep 27, 2005 5:41 am 
Beginner
Beginner

Joined: Wed Apr 13, 2005 10:34 am
Posts: 38
Is it possible to exclude mapped tables from SchemaExport/Update? For example tables that are replicated or shared between several applications.

Regards,

Heiko


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 1:08 pm 
Beginner
Beginner

Joined: Wed Apr 13, 2005 10:34 am
Posts: 38
I'd like to bring the Topic back to top.
Obviously there is no such feature yet?

It would also be useful for tables only accessible via database links and in combination with the schema validation function available in 3.1.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 2:31 pm 
Newbie

Joined: Tue Jul 26, 2005 6:26 am
Posts: 15
If you specify that your class is abstract (even if it actually isn't), no table is generated. I don't know, if this has results on other things, but you could give it a try.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 3:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
such a feature is not implemented (yet)

Might be relevant to do at some point - patches welcome.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 9:24 am 
Beginner
Beginner

Joined: Wed Apr 13, 2005 10:34 am
Posts: 38
MartinLeim wrote:
If you specify that your class is abstract (even if it actually isn't), no table is generated. I don't know, if this has results on other things, but you could give it a try.

Thanks, but making the class itself abstract is not an option. I need instances of this class.

I also tried mapping the class as abstract but it has no influence on SchemaExport.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 7:37 am 
Newbie

Joined: Mon Jun 06, 2005 8:28 am
Posts: 5
Location: Germany
Just an idea:
Excluding mappings from schema generation could be implemented by using a <meta>-attribute that tells SchemaUpdate/SchemaExport to not generating the DDL.

_________________
Cd wrttn wtht vwls s mch trsr.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 7:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
won't work.

one class != one table

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