-->
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: Error getting value from database
PostPosted: Fri Dec 05, 2003 1:02 pm 
Newbie

Joined: Fri Dec 05, 2003 11:07 am
Posts: 14
I'm getting the following error when trying select a record

Error 500: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of salesforecast.SalesHistory.setSales6

This is how the mapping is setup
<property name="sales6">
<column name="SALES_6" sql-type="DECIMAL" not-null="true"/>
</property>

the variable type in my class is a double

and the setter is:
public void setSales6(double d) {
sales6 = d;
}

I only get this error if the database field is blank.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 05, 2003 1:29 pm 
Newbie

Joined: Tue Nov 25, 2003 5:05 pm
Posts: 18
Please use Double instead of double.

ciao

Sven


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.