-->
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: Excluding Schema Annotation in Rev. Engineering
PostPosted: Fri Feb 22, 2013 11:02 am 
Newbie

Joined: Fri Feb 22, 2013 10:54 am
Posts: 1
I have a situation in which I have 2 schemas in the same database with the same tables. We use one for testing and one for production. I have implemented a multiple schema data source strategy with data source routing. I want to be able to use the same POJOs across schemas, but the schema attribute in the on the POJO is causing issues.

I can remove the attribute manually, but for maintenance purposes I would like to have that excluded from POJO generation. Is this possible?

To clarify, the generated attribute looks like this:

Code:
@Table(name = "MICR1", schema = "MICRDBA")


I would like for it to generate this instead:

Code:
@Table(name = "MICR1")


Thanks for any input.


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.