Is "no choice upgrade" possible in Hibernate / JPA?

Thus, with JPA / Hibernate you can, of course, load the proxy entity without getting into the database using something like session.load() or entityManager.getReference() .

However, it seems impossible to set the property on these "proxies" without Hibernate, initializing the proxy server from the database. Therefore, you cannot save only changed values ​​(via @DynamicUpdate on entities) without a choice.

I believe that it is, and if you want to update without select , you need to manually flip it. I would be glad if someone could prove to me that I am wrong! Did I miss something?

+5
source share

Source: https://habr.com/ru/post/1271018/


All Articles