Hibernate version:
2.0.3
Mapping documents:
....
<property name="status"/>
<property name="lastModified"/>
...
Code between sessionFactory.openSession() and session.close():
session = sessionFactory.openSession();
transaction = session.beginTransaction();
session.saveOrUpdateCopy(o);
transaction.commit();
Full stack trace of any exception that occurs:
no stack trace
Name and version of the database you are using:
oracle 9i
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
amazingly screwy problem... i have a simple entity object.. with 2 attributes.. one String and one Date. When I save the object, update the data, then save it again, the String attribute gets currupted by the time it gets to the database.
in the debugger the string is correct, as "SUBMITTED".. when i step through and re-save it to the database, it becomes "$%#MITTED".. its like the first part of the array of chars is being currpted by some other write.
the REALLY screwy thing here is that if i remove the other attribute (the date), the string behaves as expected.
any ideas? this is killing me.
g
|