Hey Amit you have coded your logic in business method as
I think these kind of errors we get when there is configuration mistmatch.
If you have annotating your entitymanager then i dont think you have explicitly create entityManager from entityManagerFactory.
Just try with this code n i hope we would get around of this issue
Pls try with above code snippet and check !!!
Cheers !!!
Sumit Malik