Hibernate version: 3.0
I have an entity bean class A which I would like to serialize and send over the network to an external system which knows nothing about hibernate. Moreover I have had to declare A lazy, which means that Hibernate represents instances of A using proxies.
Now I could just serialize the A proxies and send them to the external system, but then I would need the external system to include hibernate.jar which contains the proxy classes, and for design reasons I cannot do that.
So what I would much rather like to do was to call some API which converted a proxy instance into a real non-proxy instance of A. This means an API which creates a new A and sets its properties equal to the properties found in the proxy. Of course I could write this myself, but I would like to know if hibernate can do this for me.
Thanks.
Randahl
|