I have createa simple CRUD application utilize JPA and Hibernate.
I have entity annotated JPA javax.persistence.@entity annotation and hibernate configuration file (hibernate.cfg.xml).
I do not use the JPA entity manager rather than using the Hibernate Native API (Session, Session Factory, HibernateUtil).
I do not have hibernate mapping file and persistence.xml.
Any problem.
Please help.
You dont need to have mapping file as you are using JPA annotations. But certainly you have to have persistence.xml unless if you are using Spring 3.1 LocalContainerEntityManagerFactoryBean class.