Complete information are here (If you are stuck!),
January 17, 2010 at 5:27 PM
A beginner may not able to do the above tutorial working because there are not enough information about all the steps to follow the tutorial.
Please refer the following steps if you are stuck with how to implement successfully.
First, under the src folder, create a folder called META-INF and include the persistence.xml file in that folder.
Then replace the value of the hibernate connection url property of the persistence.xml file with your actual connection url.
That means if you are running mySQL Server in your local machine, the configuration will be as follows. <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/jpacrud"/>
In the same way, configure the username and the password of the following tags. <property name="hibernate.connection.password" value="root"/> <property name="hibernate.connection.username" value="root"/>