EntityManager em = factory.createEntityManager();
//create the query from the EntiryManager
Query q = em.createQuery( "select i from " + Item.class.getName() + " i where
i.name like :itemName" );
String itemName="foobar"; //itemName cannot be null
q.setParameter( "names", itemName )
On 5/16/10 1:13 PM, Fabio Perfetti wrote:
Hi! I am having problems with struts 2.1.8 and the plugin for integrate
hibernate.
java.lang.NullPointerException
at
it.tesina.model.DipendenteService.getByUsername(DipendenteService.java:42)
public Dipendente getByUsername(String username){
Dipende
Hi! I am having problems with struts 2.1.8 and the plugin for integrate
hibernate.
this is the error:
java.lang.NullPointerException
at
it.tesina.model.DipendenteService.getByUsername(DipendenteService.java:42)
at it.tesina.action.Login.authenticate(Login.java:35)
at sun.reflect.NativeMethodAcces
3 matches
Mail list logo