This post is in continuation of JPA How to get the value from database after persist
When I execute the following I am getting following exception, how can I resolve
you need to remove entityManager.getTransaction().begin() statement and annotate method using @Transactional which enables spring transactions