Let user cache have the user prototype and dbmapping so

collections/virtual subnodes work for anonymous users.
This commit is contained in:
hns 2001-11-27 16:50:00 +00:00
parent dee820e805
commit e9aa7b7edd

View file

@ -45,8 +45,8 @@ public class User implements Serializable {
setNode (null);
umap = app.getDbMapping ("user");
cache = new TransientNode ("[session cache]");
// cache.setPrototype ("user");
// cache.setDbMapping (umap);
cache.setPrototype ("user");
cache.setDbMapping (umap);
sessionID = sid;
onSince = System.currentTimeMillis ();
lastTouched = onSince;
@ -127,6 +127,8 @@ public class User implements Serializable {
*/
public void clearCache () {
cache = new TransientNode ("[session cache]");
cache.setPrototype ("user");
cache.setDbMapping (umap);
}
}