entityDao.saveOrUpdate(pattern);
return redirect("patterns", "info.save.success");
}
public String saveEntity() {
RestrictEntity entity = (RestrictEntity) populateEntity(RestrictEntity.class, "entity");
if (null != entity.getName()) {
entityDao.saveOrUpdate(entity);
logger.info("save restrict entity with name {}", entity.getName());
}
return redirect("fields", "info.save.success");
}