Package ua.ck.geekhub.entity

Examples of ua.ck.geekhub.entity.Group


    public void deleteGroup(Group group) {
        sessionFactory.getCurrentSession().delete(group);
    }

    public void createGroup(String name) {
        Group group = new Group();
        group.setName(name);
        saveGroup(group);
    }
View Full Code Here


  }

    @RequestMapping(value = "/save", method = RequestMethod.POST)
    public String saveUser(@RequestParam String userId, @RequestParam String firstName,
                           @RequestParam String lastName, @RequestParam String email, @RequestParam String groupId) {
        Group group = groupService.getGroup(Integer.parseInt(groupId));
        User user = new User(Integer.parseInt(userId), firstName, lastName, email, group);
        userService.saveUser(user);
        return "redirect:users";
    }
View Full Code Here

TOP

Related Classes of ua.ck.geekhub.entity.Group

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.