-->
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: Property values are null
PostPosted: Thu Sep 24, 2009 9:41 am 
Newbie

Joined: Thu Sep 24, 2009 9:38 am
Posts: 2
I have the following mapping in securities.hbm.xml file. The value of index comes fine.(value=10) However, sometimes the value of stockmembership s null. any ideas why? i didnt make any change to the code. it works fine now. however, earlier the same code was nt working.

Code:
<property name="index" column="INDEX_SPPW_ID"/>
<property name="stockMembership" formula="(case when INDEX_SPPW_ID = 10 then 'S&amp;P 400' when INDEX_SPPW_ID = 11 then 'S&amp;P 500' when INDEX_SPPW_ID = 12 then 'S&amp;P 600' else '' end)" type="string" />


Thank you!
Jayashree.


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.