Hi
I am getting an exception in my Hibernate exception. Below is the stack trace of my exception.
he following exception was logged org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.javacertificate.data.table.Exam.setField1
at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValuesWithOptimizer(PojoEntityTuplizer.java:215)
at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:185)
at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3232)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:129)
................................
This is my database details for this field.
+---------------+--------------+------+
| Field | Type | Null |
+---------------+--------------+------+
| FIELD1 | bigint(20) | YES |
+---------------+--------------+------+
my mapping is
<property name="field1" type="long">
<column name="FIELD1" />
</property>
and following is my
java class.
private long field1;
public long getField1() {
return field1;
}
public void setField1(long field1) {
this.field1 = field1;
}
How can I resolve this issue ?
[ May 26, 2006: Message edited by: Albin Joseph ]