• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is making a change in Transient variable make it eligible for Dirty Checking

 
Ram Suryanshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using Hibernate and have created a Transient variable in my Entity Bean.

My question is that is after loading the data from database , if i make a change in that Transient varible then that object is eligible for Dirty Checking or not.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate will only "dirty-check" the mapped values. So if you transient var is not mapped, then it won't mark it as dirty.

Mark
 
Ram Suryanshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Mark. It cleared my doubt fully.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic