DirectPropertyAccessor alternatives in 5.2.12


We used in Hibernate 4.1.9 DirectPropertyAccessor to implement custom access methods (getters and setters) for hibernate properties. How can we implement those custom methods in Hibernate 5.2.12 ?


Depends how you indicated to use that access strategy. hbm.xml? Annotations? orm.xml? Ultimately DirectPropertyAccessor should be replaced with either or Again, how to specify that switch depends on what mechanism you are using.

We use hbm.xml files.

Thanks. PropertyAccessFieldImpl is what we search.