@Test @DatabaseSetup("classpath:dbunit/user_credentials.xml") public void testFindByActivateToken() { UserCredentials userCredentials = userCredentialsDao.findByActivateToken(SYSTEM_TENANT_ID, "ACTIVATE_TOKEN_1"); assertNotNull(userCredentials); assertEquals("3ed10af0-27d5-11e7-93ae-92361f002671", userCredentials.getId().toString()); }
@Override public UserCredentials findByActivateToken(TenantId tenantId, String activateToken) { return DaoUtil.getData(userCredentialsRepository.findByActivateToken(activateToken)); }
JpaUserCredentialsDao extends JpaAbstractDao<UserCredentialsEntity, UserCredentials> implements UserCredentialsDao { @Override public UserCredentials findByActivateToken(TenantId tenantId, String activateToken) { return DaoUtil.getData(userCredentialsRepository.findByActivateToken(activateToken)); } }
JpaUserCredentialsDao extends JpaAbstractDao<UserCredentialsEntity, UserCredentials> implements UserCredentialsDao { @Override public UserCredentials findByActivateToken(TenantId tenantId, String activateToken) { return DaoUtil.getData(userCredentialsRepository.findByActivateToken(activateToken)); }  }
JpaUserCredentialsDao extends JpaAbstractDao<UserCredentialsEntity, UserCredentials> implements UserCredentialsDao { @Override public UserCredentials findByActivateToken(TenantId tenantId, String activateToken) { return DaoUtil.getData(userCredentialsRepository.findByActivateToken(activateToken)); }  @Override UserCredentials findByUserId(TenantId tenantId, UUID userId); @Override UserCredentials findByActivateToken(TenantId tenantId, String activateToken); @Override UserCredentials findByResetToken(TenantId tenantId, String resetToken); }
JpaUserCredentialsDao extends JpaAbstractDao<UserCredentialsEntity, UserCredentials> implements UserCredentialsDao { @Override public UserCredentials findByActivateToken(TenantId tenantId, String activateToken) { return DaoUtil.getData(userCredentialsRepository.findByActivateToken(activateToken)); }  @Override UserCredentials findByUserId(TenantId tenantId, UUID userId); @Override UserCredentials findByActivateToken(TenantId tenantId, String activateToken); @Override UserCredentials findByResetToken(TenantId tenantId, String resetToken);  }