コード例 #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);
 }