I'm on WildFly 10, Hibernate 5.2.2 and a simple JAX-RS/JPA app with an entity like this:
All works like expected, but if I reload the app (not restarting WildFly) then on entity load I get:
If I restart WildFly, it works again. Also, if I disable caching all works fine also after deployment reload.
Debugging, I've found that in org.hibernate.property.access.spi.GetterFieldImpl.get, after WildFly restart we have:
and after deployment reload:
I don't know how this can happen, two classes with the same name which are not the same class.