Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed I added @Column(name="advanced_payment",columnDefinition="smallmoney")
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic