PersistenceContext should be EntityManager, not Session. Then, in the code, we need to Downcast to HibernateEntityManager and get the session.
Logged In: YES user_id=1180472
Agh! The container can wrap the Hibernate EntityManager, which prevents the cast.
Log in to post a comment.
Logged In: YES
user_id=1180472
Agh! The container can wrap the Hibernate EntityManager,
which prevents the cast.