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.