Hello,
Im building a client/server application using RMI and Hibernate in the server side. To save, delete and retrieve persistent objects I built a class on the server called ServerAcess with methods saveObject, deleteObject, retrieveAllObjects etc that can be accessed by clients via RMI. The objects are passed from client to server and vice-versa via Serialization.
Example:
public Set retrieveAllObjects(Class persistenteClass) would retrieve all persistent objects of the desired persistent class.
The idea is to completely separate the clients from the persistence mechanism. I mean, clients cannot use any library from Hibernate, only the server can do that.
While I was using it with objects with no one-to-many associations it was working fine. However, now I have a persistent object with a set of other persistent objects and im stucked in a problem: The Set class used by Hibernate is not the same Set class used in Java API, it is a own implementation. So,
_________________ Henrique Velloso
--------------------
System Architect
FUNDEP - UFMG - BRAZIL
|