Role role2 = new Role("ROLE_ADMIN");
role1 = roleRepository.save(role1);
role2 = roleRepository.save(role2);
User user1 = new User(1, "admin@gmail.com", "admin", "Administrator");
User user2 = new User(2, "siva@gmail.com", "siva", "Siva");
user1.addRoles(role1, role2);
user2.addRoles(role1);
role1.getUsers().add(user1);
role1.getUsers().add(user2);
role2.getUsers().add(user2);