I need to call
Code:
session.refresh(this, LockMode.UPGRADE);
in order to write to a CLOB column in my
subclass table (I'm using an Oracle DB, so I have to use this
http://www.hibernate.org/56.html workaround). However, the generated SQL is
Code:
select <id column> from <root table> where <id column>=? and VERSION =? for update
which only locks the the
root table, so my CLOB write fails with:
Code:
java.io.IOException: ORA-22920: row containing the LOB value is not locked
Did I miss something here?
Thanks.
Eran
(Hibernate version: 2.1)