-->
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: How to set the schema name for a sequence
PostPosted: Mon Mar 12, 2012 1:59 pm 
Newbie

Joined: Mon Mar 12, 2012 1:51 pm
Posts: 1
Hi,

I need to change the schema name of a sequence on run time.
I plan to create few different dataSource that will be linked to different schema and I also need to change the sequence's schema name according to it.
Is there a way to do this ?

Currently the schema name is hard coded in the hbm file:
<id name="documentId" type="integer" column="DOCUMENT_ID">
<generator class="sequence">
<param name="sequence">SCHEMA_NAME.P_DOCUMENT_SEQ</param>
</generator>
</id>

I would like to remove this from the hbm file and set it dynamically..

Thanks for all the helpers :)
Lital


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.