logger.info("Initializing Database with sample data");
Role role1 = new Role("ROLE_USER");
Role role2 = new Role("ROLE_ADMIN");
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);
Contact contact1 = new Contact(null, "abcd@gmail.com", "Abcd", null, null, user2);
Contact contact2 = new Contact(null, "xyz@gmail.com", "Xyz", null, null, user2);
user2.addContacts(contact1, contact2);
userService.createUser(user1);
userService.createUser(user2);