Javier Gil
Javier Gil

Reputation: 11

Problem using custom PropertyAccessor implementation with annotations

I've a custom implementation of PropertyAccessor that only works if I declare it in the XML mapping file, but not when using field annotations in POJOs).

I try the following:

I expect @AccessType=("my.custom.property.accessor") or @AttributeAccessor("my.custom.property.accessor") to work, but it seems that these annotations or actually their content are ignored.

As a precision, I use field access.

Any help will be really appreciated, I want to move to annotations instead of XML mapping files, and this issue is preventing me to do it.

Thanks in advance.

Upvotes: 1

Views: 99

Answers (0)

Related Questions