-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: No change for the entity but hibernate said entity is dirty
PostPosted: Tue May 29, 2007 6:44 pm 
Newbie

Joined: Tue May 29, 2007 6:30 pm
Posts: 3
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.