-->
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: modify formula attribute mentioned in hbm file at runtime
PostPosted: Fri Jan 02, 2009 3:36 am 
Newbie

Joined: Fri Jan 02, 2009 2:56 am
Posts: 1
Hi,
I need to modify formula attribute mentioned in hbm file at runtime based on type of server.

Details:

We have two servers 1) Sybase 2) IQ.

and we have a hbm with one property as

Code:
<property name="Col1" formula="(select col1 from SybDb..Table1 ca where ca.Col2='1')"/>



since we don't have diff. database in IQ formula should chnage to select col1 from IQDb_Table1 ca where ca.Col2='1')


Question:
1) How to chnage the formula at runtime?


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.