Yes the entityManager is created by guice.
But the entities that you retrieve from the DB are not created by guice
and therefore the interceptor does not work.
On 14.08.2016 16:51, Travis Collins wrote:
I'm running a small test that uses a Guice managed JPA context. It's
working very well.
I'm running a small test that uses a Guice managed JPA context. It's
working very well.
I have created some custom annotations on the entity classes. These
annotations are generally used to validate values on setters. I'm using the
Guice binder.bindInterceptor(...) method to intercept method