-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: POJO created in the client and passed as parameter to bean
PostPosted: Mon Mar 19, 2007 11:02 am 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.