In a permanent object, if I change only one field, is it possible to recognize the changed field only through Hibernate? I know that I can get the whole old line and new line and compare.
One option is to connect to the Hibernate event system (see docs ). For example, if you registered to receive FlushEntityEvent, you should be informed about which columns were changed using the getDirtyPropertiesevent method .
FlushEntityEvent
getDirtyProperties
, , , Envers .
Envers / . , , , , @Audited. , , . .
Source: https://habr.com/ru/post/1738620/More articles:No postback to any button by clicking on an ASP.NET 4.0 application. - asp.netGetting BeautifulSoup to search for a specific - pythonBack button in ajax update panel not working - ajaxstandard javascript / jquery debugging method - javascriptIs it possible to include external DLLs in a silverlight project that was not created for Silverlight? - c #Add Step to Manage ASP.NET Wizard - c #Creating an Active Directory Schema in OpenLDAP - schemaGoogle map search bar resizes in GWT - searchremember the selected text on the html page (add annotation to the html page) - javascriptHow to safely communicate with a database using a java applet - javaAll Articles
- python