tags:

views:

33

answers:

0

Hi All,

I am using hibernate as ORM for my application. I am doing a saveOrUpdate on an Entity. When I check the queries fired . I can see 2 of them

1)Insert into... 2)Update... where id =? and version =?

is this because of version , or this is regular hibernate behavior .. Since this is going to have Performance impact.

I am using id as native with unsaved-value="-1" and version is set to null initially