如果是用hibernate
list = em.createQuery("select customerName from CustomerEntity where customerId like ?1")----中的1是不需要的吧?--我记得只有EJB才是这样查询的