-->
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.  [ 3 posts ] 
Author Message
 Post subject: Mapping a Double raises a wrong column type
PostPosted: Wed Dec 23, 2009 10:16 am 
Newbie

Joined: Wed Dec 23, 2009 10:06 am
Posts: 3
Hello,

I want to map a field of type Double with Hibernate and a Oracle 10g DB.
In Oracle, the field is defined as NUMBER(11,2).

I have tried different hibernate configs for the mapping and each time, a Wrong column type error is raised.

@Column(name="available_balance")
private Double availableBalance;
->org.hibernate.HibernateException:
Wrong column type: available_balance, expected: double precision


@Column(name="available_balance",precision=11, scale=2,columnDefinition="NUMBER(11,2)")
private Double availableBalance;
->org.hibernate.HibernateException:
Wrong column type: available_balance, expected: NUMBER(11,2)


Could somebody help me?

Thx in advance


Top
 Profile  
 
 Post subject: Re: Mapping a Double raises a wrong column type
PostPosted: Mon Dec 28, 2009 4:44 am 
Newbie

Joined: Wed Dec 23, 2009 10:06 am
Posts: 3
anybody?


Top
 Profile  
 
 Post subject: Re: Mapping a Double raises a wrong column type
PostPosted: Tue Jan 19, 2010 4:53 am 
Newbie

Joined: Wed Dec 23, 2009 10:06 am
Posts: 3
up


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.