Hi,
Please ignore the TestClass.java attachment. I've now added another class names "HibernateTestClass.java" and corresponding persistence XML in it.
They are the updated one.