-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: HibernateException mapping BigDecimal to sql smallnumber
PostPosted: Fri Jan 29, 2010 11:53 am 
Newbie

Joined: Tue Oct 06, 2009 2:03 pm
Posts: 7
I get the following error


Caused by: org.hibernate.HibernateException: Wrong column type in Enterprise.dbo.pws_price_profile for column advanced_payment. Found:
smallmoney, expected: numeric(19,2)

When I try to map a bigDecimal field to a sql server type smallmoney.

I think <Column type to be ="NUMERIC(19,2)"> might solve the problem is there a corresponding Annotation for the above XML.

Also is there a good list of all Hibernate Annotation types.

Thanks for any help.


Top
 Profile  
 
 Post subject: Re: HibernateException mapping BigDecimal to sql smallnumber
PostPosted: Fri Jan 29, 2010 12:11 pm 
Newbie

Joined: Tue Oct 06, 2009 2:03 pm
Posts: 7
Fixed I added @Column(name="advanced_payment",columnDefinition="smallmoney")


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.