Package com.givens.springdata.model

Examples of com.givens.springdata.model.Role


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

        // Create new records
        Role adminRole = new Role();
        adminRole.setRole(1);
        adminRole.setRolename("Administrator");

        Role userRole = new Role();
        userRole.setRole(2);
        userRole.setRolename("User");

        User john = new User();      
        john.setFirstname("John");
        john.setLastname("Smith");
        john.setPassword("21232f297a57a5a743894a0e4a801fc3");
View Full Code Here

TOP

Related Classes of com.givens.springdata.model.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.