-->
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: Trouble Mapping a Sybase Money Column
PostPosted: Wed Apr 27, 2011 3:50 pm 
Newbie

Joined: Wed Apr 27, 2011 3:33 pm
Posts: 1
I am trying to map a money column in my hibernate configuration, but am having serious trouble doing so. I haven't touched hibernate in many years, so for the most part you could say I am relatively new to this. I have yet to try a custom type, thinking that there must be a simpler solution for this. I have tried all the basics, like mapping to float and double, even found the following reference which looked promising but didn't seem to work (maybe I am doing something wrong?):

Code:
       <property name="amount" type="big_decimal" column="amount" >
          <column name="amount" length="8" sql-type="money" not-null="false" />
       </property>

I then defined my POJO variable as: java.util.math.BigDecimal.

Any help would be immensely appreciated.


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.