Hibernate version: latest
WinForms App
SQL Server 2000
Hi,
I am not sure if the is the right place for this posting, but I figured I would try here first.
I have some money fields in my SQL Server. I have them mapped as Decimal(19,4). I am writing a WinForms app and they show up with 4 places after the decimal. So it comes out like 12312.0000 which is how they look in the DB. I tried Decimal (19,2), but did not seem to matter. Is there away in the mapping file to make it only 2 decimal places? Or do I have to do this in the c# code?
Code:
<property column="E2EachOccurrence" type="Decimal (19,2)" name="E2EachOccurrence" />
<property column="E2Aggregate" type="Decimal (19,2)" name="E2Aggregate" />