Hibernate 2.1
Oracle 9i.
There is one column in one of the tables is defined as Oracle Object type. And we found that for all the records in this table, if this column is not null then hibernate always states that the entity is dirty (the dirty property maps to the Oracle Object type column) even if there is no change at all. Thus there are always unnecessary update statements.
By Oralce Object type, I mean the column is not regular columns like NUMBER, VARCHAR2, DATE etc., but something like the following defined in Oracle schema.
Type MyType
{
...
}
Could somebody here help us how to avoid these dirty entity issue?
Many thanks in advance!
|