I am new to Hibernate and JPA .Right now I am using EntityManagerFactory Instance to create EntityManager then I have UnWrap this EntityManager into Session using
entityManager = entityManagerFactory.createEntityManager();
session = entityManager.unwrap(Session.class);
By using EntityManagerFacotry we no need to create Hibernateconfig.xml we can use Persistence.xml.But My problem is I am not able to Hibernate Mapping file to map the Entity Class when I am using Peristenece.xml
Can use Hibernate Mapping file to to map the entity class using EntityManagerFactory?