From: Urberg, J. <ju...@ve...> - 2002-07-26 12:47:49
|
>> I've no idea if its serializable, probably not, but that doesn't affect serializability of the Session. This is the factory-level cache using JCS, not the Session's own collection of loaded objects. << Guess I haven't looked very closely at the cacheing stuff yet. I was assuming it was part of the session/ >> Sessions are already serializable when disconnected and may be passed on the wire. What exactly did you have in mind? << I'm building a 3-tier Java GUI. I'd like to be able to issue queries using Hibernate, disconnect the Session and send it over the wire, get the queried objects out of the cache (and have any of those object's related objects automatically come from the the cache if they're in it), make changes to the objects on the client side, send the whole session back to the server, reconnect the Session to the datasource and flush to apply any updates that happened on either side to the database. I didn't think that was possible in Hibernate yet, so I've been using my own simple cache for now. Regards, John |