-->
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: Serialize hibernate object with Axis2
PostPosted: Fri Sep 21, 2007 8:34 am 
Beginner
Beginner

Joined: Sun Aug 12, 2007 11:22 am
Posts: 44
Location: Sweden
Hi!

I'm serializing hibernate POJO via Axis2 and it works fine. One problem though is that I've read that permitting setting the ID for a mapped class is not a good practise, therefor I have excluded the setId() method for my pojos.

When I try to serialize the pojo the getId() returns null. Hibernate sets the id but when I serialize the object it returns null.

I must have an ID on the client side to know if it is a new object or an object that exists. Must I implement the setId() to get this to work?


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.