here is my Repository
@Service
public class FuneralPricingRepository {
@PersistenceContext
private EntityManager em; //this is null
public List<FuneralPricing> findAll() {
return this.em.createNativeQuery("SELECT * FROM FUNERALPRICING").getResultList();
}
}
AS400calls is autowired but funeralPricingRepository is not.
public class TestFuneralPremiumProvider implements TestHandler {
@Autowired
private As400Calls as400Calls; //this is not null
@Autowired
private FuneralPricingRepository funeralPricingRepository; //this is null
Please help...