Accessing older versions of entities

Hi, is there a way to query older versions of entities? Can it be done using JPQL? Or is QueryRunner needed? My users may want to perform a calculation using the latest version before a certain date. I.e. where UPDATED_TS < asOfDate.


The CUBA framework does not store entity versions by default - it is very specific functionality.

I suggest that you take a look at these two mechanisms: Entity Snapshots and Entity Log.

I think that one of them will be suitable for you.

Please clarify your question to get more info.

Best regards,

I agree that it’s probably not a popular request. Thanks for the confirmation and clarity.