-->
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.  [ 2 posts ] 
Author Message
 Post subject: Eclipse Plugin:Variable schema name for multiple deployments
PostPosted: Sat Jul 23, 2005 10:21 am 
Newbie

Joined: Sat Jul 23, 2005 9:48 am
Posts: 1
Location: Melbourne, Australia
We are using the eclipse "artifact generation" plugin to generate the hbm from an existing Oracle 9i database.

The trouble is, the schema name (the same as the user name in Oracle) in the resulting mapping files is set to the actual schema name of the database we are reverse engineering. This name seems to override the default_schema set in hibernate.cfg.xml at runtime.

This is a pain in that we may have multiple applications deployed against multiple schemas, for example a prod, test and training schema.

We have found a workaround. We do a global removal of the schema entry in each of the mapping files. Hibernate then seems to use default_schema. However we are uncomfortable in having to add that extra removal step.

Is there a better way to automate the removal? (custom templates?)

Is there a better way full stop? (are we missing something?)

Thanks in advance

Pat


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 23, 2005 4:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
create a patch to the .vm templates so we dont insert schema/catalog name if they are == to the defaults. and then add that to jira

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