Hi,
from the BV spec point of view not having a getter is not an issue. The problems seems to lie in
JPATraversableResolver or maybe in
PersistenceUtil within Entity Manager. The reason it worked before was that the
JPATraversableResolver gets transparently added once you add the entity manager dependency.
Currently the
JPATraversableResolver implementation calls
Code:
Persistence.getPersistenceUtil().isLoaded( traversableObject, traversableProperty.getName() );
within
JPATraversableResolver.isReachable. This method also gets passed the element type of the property, but that information does not get used right now. The question is whether JPA requires the getter. It is also worht checking the exact contract of
isLoaded.
I'm opening a Jira ticket for it -
HV-320.