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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8c345-10c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8c345-10c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?