openxava
Blog

June 7, 2022

Video for lesson 16 of OpenXava course

Calculated properties, those with just a getter, allows you to define any imaginable calculation using Java, but given that they have not a column in the database, your user cannot search or sort for that property. A way to solve this problem is to have a persistent property too, and synchronizing both, persistent and calculated, using a JPA callback method.
It's not so difficult, watch the video.

Video for lesson 16: Synchronize persistent and calculated properties

Remember to subscribe to the channel so you don't miss any new videos.

blog comments powered by Disqus

Español