i have made mistake in my post code
public Clienti findByName(String nome) {
Clienti id=(Clienti)
em.createNamedQuery("Clienti.findByNome").setParameter("nome",nome).getSingleResult();
return em.getReference(Clienti.class, id.getIdcliente());
}
public Clienti findByName(String nome) {
return
em.createNamedQuery("Clienti.findByNome").setParameter("nome",nome).getSingleResult();
}
pls have you some suggestion
Devis
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045667#4045667
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045667
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user