Hi,
I'm having a problem persisiting changes to the database.
When i change the value of one property (GIVEN_NAME), then change is persisted to the database. However, when i make a change to another property (FAMILY_NAME), the change is not persisted.
These properties are both columns on the same table and both have been included in the equals() and hashcode() methods.
Call to saveOrUpdate() is done through getHibernateTemplate() in a Spring application and i am using the OpenSessionInViewInterceptor class for session handling.
Why would this happen? How is there any difference between these two columns?
Thanks,
John
Hibernate version: 3.2.4 sp1
Name and version of the database you are using: Oracle 10g
<property name="givenNames" type="string">
<meta attribute="use-in-tostring" inherit="false">true</meta>
<meta attribute="use-in-equals" inherit="false">true</meta>
<column name="GIVEN_NAMES" length="100" />
</property>
<property name="familyName" type="string">
<meta attribute="use-in-tostring" inherit="false">true</meta>
<meta attribute="use-in-equals" inherit="false">true</meta>
<column name="FAMILY_NAME" length="100" />
</property>
|