How can use cfg file with hibernate entitymanager

32 Views Asked by At

I want to define entities with cfg files for hibernate. My problem is that when I use the entityManager I get the following error

@PersistanceContext
 private EntityManager em;
....
var session=(session)em.getDelegate();
session.get(Move.class,1);

;

unable to locate entity

0

There are 0 best solutions below