@ModelAttribute public void prepareModel( HttpServletRequest request, Model model, @RequestParam(value = "id", required = false) Long id) { super.initPrepareModel(request, model, id); }
public void prepareCreate() { super.prepareCreate(); String parentId = this.getParameter("parentId"); if (StringUtils.isNotBlank(parentId) && !"NULL".equalsIgnoreCase(parentId)) { bindingEntity.setParent(menuService.findOne(parentId)); } bindingEntity.setCode("M" + RandomStringUtils.randomNumeric(6)); }
@Override public void prepareCreate() { super.prepareCreate(); bindingEntity.setCode("RPT_" + RandomStringUtils.randomNumeric(6)); }