[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-2084) Hibernate could not map number(1) to a boolean with direct field access mapping

Christian Bauer (JIRA) noreply at atlassian.com
Mon Sep 18 11:07:24 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2084?page=all ]
     
Christian Bauer resolved HHH-2084:
----------------------------------

    Resolution: Rejected

A boolean is not a number. Go to the user forum.


> Hibernate could not map number(1) to a boolean with direct field access mapping
> -------------------------------------------------------------------------------
>
>          Key: HHH-2084
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2084
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.2.0.cr2
>     Reporter: Amir Pashazadeh

>
>
> My entity has a boolean property mapped directly to field (no accessors) and it has a proper NUMBER(1) column on database. When fetching the entity following exception occures:
> 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)
>         ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list