@Override public User findByUserName(final String userName) { Assert.notNull(userName, "userName can not be [null]"); br.nom.pedro.oliveira.smartproject.integration.orm.User orm = entityManager .createNamedQuery("User.findByUsername", getOrmClass()) .setParameter("username", userName) .getSingleResult(); return userDataMapper.ormToEntity(orm); }
@Override public void delete(final User entity) { userDataMapper.delete(entity); }
@Override public void update(final User entity) { userDataMapper.update(entity); }
@Override public void create(final User entity) { userDataMapper.insert(entity); }