This content has been marked as final.
Show 1 reply
-
1. Re: Can an entity detect if it was loaded via Envers?
adamw Sep 27, 2008 4:27 AM (in response to adepue)Hello,
well ... if the relation isn't versioned, then when you read a historical entity it will be null (which cannot happen if you read it with Hibernate, as there is no way of telling if a collection should be null or empty, so it's always empty). Another "hack" would be to check if a collection that is versioned is an instance of one of Enverses proxies.
--
Adam