| Greetings! I am trying to make use of the above mentioned (@PersistenceProperty) annotation however all my attempts had failed. I tried to pinpoint the issues, but I couldn't, Maybe I am missing something about this annotation, but I am testing it in a brand new project on a separate PC. The test case is the following: @Repository @Transactional public class PhoneBookRepo { @PersistenceContext(unitName = "default", properties = {@PersistenceProperty(name = "org.hibernate.flushMode", value = "COMMIT") } ) private EntityManager em; public void test() { FlushModeType fm = em.unwrap(Session.class).getFlushMode(); } } |