Package com.mossle.workcal.domain

Examples of com.mossle.workcal.domain.WorkcalType


    @RequestMapping("workcal-type-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            WorkcalType workcalType = workcalTypeManager.get(id);
            model.addAttribute("model", workcalType);
        }

        return "workcal/workcal-type-input";
    }
View Full Code Here


    @RequestMapping("workcal-type-save")
    public String save(@ModelAttribute WorkcalType workcalType,
            RedirectAttributes redirectAttributes) {
        Long id = workcalType.getId();
        WorkcalType dest = null;

        if (id != null) {
            dest = workcalTypeManager.get(id);
            beanMapper.copy(workcalType, dest);
        } else {
View Full Code Here

        if (id != null) {
            hql = "from WorkcalType where name=? and id<>?";
            params = new Object[] { name, id };
        }

        WorkcalType workcalType = workcalTypeManager.findUnique(hql, params);

        boolean result = (workcalType == null);

        return result;
    }
View Full Code Here

TOP

Related Classes of com.mossle.workcal.domain.WorkcalType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.