wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Hibernate Is there a corresponding Annotation for <column sql-type= " title="" /> 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: 576
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: 576
Fixed I added @Column(name="advanced_payment",columnDefinition="smallmoney")
 
GeeCON Prague 2014
 
subject: Hibernate Is there a corresponding Annotation for <column sql-type="NUMERIC(19,2)"/>