Guest User

Untitled

a guest
Jul 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1.     public List<Orderedproduct> findByOrderId(Object id) {
  2.         return em.createNamedQuery("Orderedproduct.findByCustOrderid").setParameter("productid", id).getResultList();
  3.  
  4.  
  5. java.lang.IllegalArgumentException: You have attempted to set a parameter value using a name of productid that does not exist in the query string SELECT o FROM Orderedproduct o WHERE o.orderedproductPK.custOrderid = :custOrderid.
Add Comment
Please, Sign In to add comment