# DirectPropertyAccessor alternatives in 5.2.12

**URL:** <https://discourse.hibernate.org/t/directpropertyaccessor-alternatives-in-5-2-12/1793>\
**Category:** Hibernate ORM\
**Created:** [November 26, 2018, 12:23pm UTC](https://discourse.hibernate.org/t/directpropertyaccessor-alternatives-in-5-2-12/1793 "2018-11-26T12:23:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoangcv18](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@hoangcv18](https://discourse.hibernate.org/u/hoangcv18)\
**Post date:** [November 26, 2018, 12:23pm UTC](https://discourse.hibernate.org/t/directpropertyaccessor-alternatives-in-5-2-12/1793/1 "2018-11-26T12:23:14Z")

</div>

Hi,

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 ?

Regards

---

<div class="post-metadata">

**Author:** ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)\
**Post date:** [November 26, 2018, 12:54pm UTC](https://discourse.hibernate.org/t/directpropertyaccessor-alternatives-in-5-2-12/1793/2 "2018-11-26T12:54:47Z")

</div>

Try the `PropertyAccessStrategyBasicImpl` and `PropertyAccessBasicImpl`.

The `PropertyAccessStrategyResolver` can be used to customize the `PropertyAccessStrategy`.
