entityDao.saveOrUpdate(pattern);
return redirect("patterns", "info.save.success");
}
public String saveObject() {
RestrictObject group = (RestrictObject) populateEntity(RestrictObject.class, "object");
entityDao.saveOrUpdate(group);
logger.info("save restrict object with name {}", group.getName());
return redirect("index", "info.save.success");
}