/*
* The following code does not check if an equivalent Remember Me already exists,
* it simply inserts it.
*/
SbiRememberMe temp = new SbiRememberMe();
temp.setName(name);
temp.setDescription(description);
temp.setUserName(userId);
SbiObjects obj = (SbiObjects) aSession.load(SbiObjects.class, docId);
temp.setSbiObject(obj);
SbiSubObjects subObj = null;
if (subObjId != null) {
subObj = (SbiSubObjects) aSession.load(SbiSubObjects.class, subObjId);
}
temp.setSbiSubObject(subObj);
temp.setParameters(parameters);
updateSbiCommonInfo4Insert(temp);
aSession.save(temp);
tx.commit();
return true;