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?
|
|