Senior |
|
Joined: Sat Nov 27, 2004 4:13 am Posts: 137
|
I've got a boolean field in my class and it is mapped to accessed by field (and not accessors), the proper column in Oracle is a NUMBER(1).
When fetching data from Oracle a
org.hibernate.PropertyAccessException: could not set a field value by reflection setter of com.payeshgaran.MyClass.myBooleanField
org.hibernate.PropertyAccessException: could not set a field value by reflection setter of com.payeshgaran.MyClass.myBooleanField
at org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:82)
at org.hibernate.tuple.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:330)
at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:191)
...
occures.
Is there any way to solve this problem?
_________________ don't forget to credit!
Amir Pashazadeh Payeshgaran MT پايشگران مديريت طرح http://www.payeshgaran.co http://www.payeshgaran.org http://www.payeshgaran.net
|
|