How does hibernate implement the set status status when saving, do you have to get the object first?

I want to invert a value every time I update. Do I have to get this object through java, instead of writing sql

?
Mar.29,2021

EntityManager-sharpgetReference find out.

A similar question and answer is attached https://stackoverflow.com/a/1.

in addition, as far as I know, EntityManager-sharpgetReference + setter also triggers SELECT statements, and some answers say that SELECT will not be triggered. This has yet to be confirmed.

Menu