aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate Is there a corresponding Annotation for <column sql-type= " title="Easter" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Is there a corresponding Annotation for <column sql-type="NUMERIC(19,2)"/> " Watch "Hibernate Is there a corresponding Annotation for <column sql-type="NUMERIC(19,2)"/> " New topic
Author

Hibernate Is there a corresponding Annotation for <column sql-type="NUMERIC(19,2)"/>

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
I have

@Column(name="advanced_payment")
private BigDecimal advancedPayment;


I want the Column type to be ="NUMERIC(19,2)".this is to solve a sqlserver smallmoney BigDecimal conversion.

Thanks for any help
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
Fixed I added @Column(name="advanced_payment",columnDefinition="smallmoney")
 
wood burning stoves
 
subject: Hibernate Is there a corresponding Annotation for <column sql-type="NUMERIC(19,2)"/>
 
Similar Threads
expected:5 but was:5.0000000
Java equivalent of NUMERIC(2,2)
Cannot store money value from Resultset
inserting byte[] into MS Access Database...
SQL server Big Decimal small money hibernate question