return blogDao.merge(blog);
}
private User createUser() {
User user = new User();
user.setActive(true);
user.setCreationDate(new Date());
user.setEmail("email@test.com");
user.setLocalization("Spain");
user.setPassword("password");
user.setType(UserType.VISITOR.getType());
user.setUsername("username");
user.setWebSite("www.site.com");
return userDao.merge(user);
}