Hello,
this must have been asked many times before, but I wasnt able to locate any document that sufficiently answered the few questions I am listing below. So please bear with me.
We are implementing a "rich client" app that talks to a stateless session bean facade on the Server, and are thinking about using Hibernate in this scenario both on the client and the server side.
The idea is to call a server-side service that loads a given object graph from the database and transfers that to the client. On the client, the graph will be displayed and modified, changing existing objects and adding new ones. We are not sure whether we will require lazy loading of relationships, but if we do we would have to intercept the calls and direct them through our service layer.
At the end of a user transaction, we would want to transfer the session data back to the server in one call and have hibernate process the changes there. Now to the questions:
- Does Hibernate support this configuration out of the box?
- Any experiences, caveats and the like?
- How about the amount of data transferred between client and server (both ways). Are there ways to minimize the volume (at times we're on 64kb). I would really like to use the mapped domain objects on both sides, and not implement parallel DTO class hierarchies or anything similar.
I look forward to any hints.
TIA,
Christian Sell
|