I am new to JPA & hibernate, when I try this tutorial . I added the following provider in my persistence.xml,
org.hibernate.ejb.HibernatePer
In addition:
I've faced the same problem and I came to this page after googling for an answer and none of these answers helped me, so in case that somebody passes through the same problem:
I had an ArrayList and when I wanted to add an item to the arraylist, the NoSuchMethodException encountered. The problem was that the ArrayList had to be an Array.