I'm trying to use JPA's Context Injection with Hibernate as the engine. Currently, the context fails to be injected (into entityManager - see code below), I get a NullPointerException error:
Exception in thread "main" java.lang.NullPointerException
at learn.spring.dao.ListingDao.findById(UtilistDao.java:19)
Below is my -- spring configuration, DAO class, & persistence.xml -- anyone see what is wrong/missing? Thanks.
Spring configuration file:
DAO class:
persistence.xml: