@Test public void getsAnExistingAccount() { Account persistedAccount = createAccountBuilderWithAllFieldsWithBannerData().build(); persistence.getEntityManager().persist(persistedAccount); assertThat(persistedAccount.getVersion(), notNullValue()); persistence.flushContext(); persistence.detachEntity(persistedAccount); assertFalse(persistence.contextContains(persistedAccount)); Account existingAccount = persistence.getAccount(persistedAccount.getUserId()); assertReflectionEquals(persistedAccount, existingAccount); }
public Account getAccount(@Nonnull String userId) { return read(userId); }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { public Account getAccount(@Nonnull String userId) { return read(userId); } }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { public Account getAccount(@Nonnull String userId) { return read(userId); }  }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { public Account getAccount(@Nonnull String userId) { return read(userId); }  Account getAccountByUsername(@Nonnull final String username); Account getAccountByUsernameAndPassword(@Nonnull final String username,
            @Nonnull final String password); Account getAccount(@Nonnull String userId); @Override void insertAccount(@Nonnull final Account account); @Override void updateAccount(@Nonnull final Account account); @Override void insertProfile(@Nonnull final Account account); @Override void insertSignon(@Nonnull final Account account); @Override void updateProfile(@Nonnull final Account account); void updateSignon(@Nonnull final Account account); }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { public Account getAccount(@Nonnull String userId) { return read(userId); }  Account getAccountByUsername(@Nonnull final String username); Account getAccountByUsernameAndPassword(@Nonnull final String username,
            @Nonnull final String password); Account getAccount(@Nonnull String userId); @Override void insertAccount(@Nonnull final Account account); @Override void updateAccount(@Nonnull final Account account); @Override void insertProfile(@Nonnull final Account account); @Override void insertSignon(@Nonnull final Account account); @Override void updateProfile(@Nonnull final Account account); void updateSignon(@Nonnull final Account account);  }