Joined: Fri May 07, 2004 2:18 am Posts: 19
|
Hello
I am writing a multi-tier rmi app and am using hibernate for the first time.
I created a bunch of classes to transfer across the wire which work fine. I specifically imported no hibernate associated classes or jars into any of these classes because I did not want any references to the hibernate classes to exist on the clients. As ar as they shoud be aware they are receiving plain old java obects with no reference to hibernate.
To my surprise things do not seem to be working that way. If I do not include hibernate jars on the client classpath the clients wont work.
To get around this I tried making copy constructors for every class, in other words copying every string into a new string and every arraylist element into a new element in a new arraylist. For some reason this also does not work.
Is my only choice to get around this implementing Externalizable and using readExternal and writeExternal ?
|
|