Joined: Mon Mar 19, 2007 2:41 am Posts: 1
|
I have a Hibernate POJO which is instantiated and has its properties set in the client application. Then this POJO is passed to a stateless EJB that is creating the EM and then persisting the POJO.
e.g.
App Client:
myPOJO mp = new myPOJO();
mp.setProp("abc");
myBean.save(mp);
Stateless BeanL:
save(myPOJO p) {
-- All properties of p here are NULL !!!
em.persist(p);
}
However, as soon as I'm inside the bean all the properties of the passed POJO are null!!!
When I persist a row gets created in the database with all null in it.
I suspect the bean is accessing a proxy but how do I get around this?
|
|