I have a Detectable class with a Revisions set, which are Hibernate managed POJOs. I\'m also mapping my entities using hbm.xml files. Wh
Detectable
Revisions
I finally achieved it with this code:
Where id_detectable is my current entity key column.
id_detectable
UPDATE
Another workaround is to use a DB view to obtain the last revision date. Then, there's the choice to map the Entity against that view instead of the original table.