I am Using Eclipse 3.1.0 Final
MyEclipse Build: 20050627-4.0-Milestone-2
The problem is related to the Generation of the Hibernate Descriptor for Tables with Fields of type Blob. The Database is DB2.
MyEclipse Generates the Descriptor with the following (incorrect) Mapping:
<property name=”content” column=”CONTENT” type=”blob” not-null=”true” />
The application compiles OK, but at run-time an Exception es thrown:
org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bc.rlquery.hibernate.ReqLog.setContent
I had found (in Hibernate docs) that the proper mapping for a Blob is binary, which will map to a byte[].
Then the proper mapping line should be:
<property name=”content” column=”CONTENT” type=”binary” not-null=”true” />
Saludos
Alex