[hibernate-dev] Envers ReflectionTools

Adam Warski adam at warski.org
Wed Jun 3 15:40:50 EDT 2015


> On 03 Jun 2015, at 04:37, Steve Ebersole <steve at hibernate.org> wrote:
> 
> I am needing to change how "property access" is handled (as in the
> org.hibernate.property package).  I have no idea how to fit that into
> Envers and specifically into its ReflectionTools class.  The problems boil
> down to org.hibernate.envers.internal.tools.ReflectionTools#getAccessor and
> all the uses of it.  Basically when resolving a "property access strategy"
> I need a ServiceRegistry for class loading of custom strategies.  I am lost
> in hooking that into Envers.
> 
> But then I also started thinking.. doesn't Envers always just use the Map
> entity mnde and access strategy?  And if so, why is it trying to resolve a
> named access strategy?

To write audit data - yes, but as far as I remember the different access modes where to *read* data from the user entities (either from getters or fields)

Adam

-- 
Adam Warski

http://twitter.com/#!/adamwarski <http://twitter.com/#!/adamwarski>
http://www.softwaremill.com <http://www.softwaremill.com/>
http://www.warski.org <http://www.warski.org/>


More information about the hibernate-dev mailing list