MichaelBulla wrote:
Or I could just serialize the hibernate object as it is, send this to the remote application and do the update by this object.
The second possibility would be much less work. But I can imagine, that there are some tricky things to regard (like not using hibernate generated keys).
So should I do the extra work and define some new classes to send objects over the network or can I send the hibernate objects?
Well, I already wrote an app using RMI and sending objects created by Hibernate to the client. The only problem I ever encountered was the lazy-loading: obviously, you will have to take care about not trying to use lazy-loaded properties on the other side.
Apart from this, I don't think there's a something special to watch out about sending your H3 POJOS. Just make them serializable, send them and read them (and rule them all :-p).