From c3236be3682f4b131c48b4c748938aa1445fa8fc Mon Sep 17 00:00:00 2001 From: hns Date: Sun, 5 Aug 2001 19:16:29 +0000 Subject: [PATCH] set user DbMapping on new user session objects --- src/helma/framework/core/User.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helma/framework/core/User.java b/src/helma/framework/core/User.java index 942313f7..e8299e2c 100644 --- a/src/helma/framework/core/User.java +++ b/src/helma/framework/core/User.java @@ -22,6 +22,7 @@ public class User implements Serializable { String sessionID; String uid; // the unique id (login name) for the user, if logged in NodeHandle nhandle; + DbMapping umap; long onSince, lastTouched; Node cache; String message; @@ -31,8 +32,10 @@ public class User implements Serializable { this.nhandle = null; this.app = app; setNode (null); + umap = app.getDbMapping ("user"); cache = new Node ("[session cache]"); cache.setPrototype ("user"); + cache.setDbMapping (umap); sessionID = sid; onSince = System.currentTimeMillis (); lastTouched = onSince;