-->
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: boolean direct property access on Oracle
PostPosted: Mon Sep 18, 2006 9:54 am 
Senior
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 6:53 pm 
Senior
Senior

Joined: Sat Nov 27, 2004 4:13 am
Posts: 137
mmm,
sorry it was just because of "@SecondaryTable" uses outer join instead of inner join ....

_________________
don't forget to credit!

Amir Pashazadeh
Payeshgaran MT
پايشگران مديريت طرح
http://www.payeshgaran.co
http://www.payeshgaran.org
http://www.payeshgaran.net


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.