Hi,
I got the following stacktrace when storing an object of ProductData. By debugging the TimestampType I see, that the "updated" column is a Boolean.
The type in the java class is:
protected Date updated;
Oracle type is DATE
Without the updated field anything is OK - why there is no problem with the "imported" column. ?
Any idea ?
Hibernate version: 2.1.7
Mapping documents:
<class name="ProductData" table="product_data">
<id name="packageName" type="string" column="package_name" >
<generator class="assigned"></generator>
</id>
<property name="productName" column="product_name" type="string"/>
<property name="imported" column="imported" type="timestamp"/>
<property name="updated" column="updated" type="timestamp"/>
</class>
Full stack trace of any exception that occurs:
java.lang.ClassCastException
at net.sf.hibernate.type.TimestampType.deepCopyNotNull(TimestampType.java:63)
at net.sf.hibernate.type.NullableType.deepCopy(NullableType.java:96)
at net.sf.hibernate.type.TypeFactory.deepCopy(TypeFactory.java:212)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:935)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:866)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:788)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:747)
Name and version of the database you are using:
Oracle 9.2
|