Package com.fengjing.framework.mongodb.domain

Examples of com.fengjing.framework.mongodb.domain.Role


    // Drop existing collections
    mongoTemplate.dropCollection("role");
    mongoTemplate.dropCollection("user");

    // Create new records
    Role adminRole = new Role();
    adminRole.setId(UUID.randomUUID().toString());
    adminRole.setRole(1);
   
    Role userRole = new Role();
    userRole.setId(UUID.randomUUID().toString());
    userRole.setRole(2);
   
    User john = new User();
    john.setId(UUID.randomUUID().toString());
    john.setFirstName("John");
    john.setLastName("Smith");
View Full Code Here


      @RequestParam String password,
      @RequestParam String firstName,
      @RequestParam String lastName,
      @RequestParam Integer role) {

    Role newRole = new Role();
    newRole.setRole(role);
   
    User newUser = new User();
    newUser.setUsername(username);
    newUser.setPassword(password);
    newUser.setFirstName(firstName);
View Full Code Here

      @RequestParam String username,
      @RequestParam String firstName,
      @RequestParam String lastName,
      @RequestParam Integer role) {

    Role existingRole = new Role();
    existingRole.setRole(role);
   
    User existingUser = new User();
    existingUser.setUsername(username);
    existingUser.setFirstName(firstName);
    existingUser.setLastName(lastName);
View Full Code Here

TOP

Related Classes of com.fengjing.framework.mongodb.domain.Role

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.