If we update any value in a row, version column will updated by +1 value.., this is actual concept.
My question is if we update the object with the same values.., then will the version column will incremented by +1 or will as as it is ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hibernate stores a snapshot of the object in memory when it loads it from the database. When a flush is done, it compares the state of the object with the snapshot stored at loading time. If the state hasn’t changed, the object is not dirty, and no update will be done for this object, so no version increment either.