RE: Help, struts 2.1.8 with Struts 2 Full Hibernate Plugin 2.1.3 GA

2010-05-16 Thread Martin Gainty
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 )

Re: Help, struts 2.1.8 with Struts 2 Full Hibernate Plugin 2.1.3 GA

2010-05-16 Thread Dale Newfield
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

Help, struts 2.1.8 with Struts 2 Full Hibernate Plugin 2.1.3 GA

2010-05-16 Thread Fabio Perfetti
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