写我的句子时出错:
public List findWithName(String name) {
return em.createQuery( "SELECT c FROM Customer c WHERE c.name LIKE :custName") .setParameter("custName", name)
.setMaxResults(10)
.getResultList();
}
我收到java.lang.NullPointerException
错误
写我的句子时出错:
public List findWithName(String name) {
return em.createQuery( "SELECT c FROM Customer c WHERE c.name LIKE :custName") .setParameter("custName", name)
.setMaxResults(10)
.getResultList();
}
我收到java.lang.NullPointerException
错误