예제 #1
0
  @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);
  }
예제 #2
0
 @Override
 public void delete(final User entity) {
   userDataMapper.delete(entity);
 }
예제 #3
0
 @Override
 public void update(final User entity) {
   userDataMapper.update(entity);
 }
예제 #4
0
 @Override
 public void create(final User entity) {
   userDataMapper.insert(entity);
 }