@Test public void getsAnExistingCategory() { Category persistedCategory = createCategoryBuilderWithAllFields().build(); String categoryId = persistedCategory.getCategoryId(); persistence.getEntityManager().persist(persistedCategory); persistence.flushContext(); persistence.detachEntity(persistedCategory); assertFalse(persistence.contextContains(persistedCategory)); Category existingCategory = persistence.getCategory(categoryId); assertReflectionEquals(persistedCategory, existingCategory); }
@Override public Category getCategory(final String categoryId) { return read(categoryId); }
CategoryBasePersistence extends AbstractBasePersistence<Category, String> implements CategoryMapper { @Override public Category getCategory(final String categoryId) { return read(categoryId); } }
CategoryBasePersistence extends AbstractBasePersistence<Category, String> implements CategoryMapper { @Override public Category getCategory(final String categoryId) { return read(categoryId); }  }
CategoryBasePersistence extends AbstractBasePersistence<Category, String> implements CategoryMapper { @Override public Category getCategory(final String categoryId) { return read(categoryId); }  @Override List<Category> getCategoryList(); @Override Category getCategory(final String categoryId); }
CategoryBasePersistence extends AbstractBasePersistence<Category, String> implements CategoryMapper { @Override public Category getCategory(final String categoryId) { return read(categoryId); }  @Override List<Category> getCategoryList(); @Override Category getCategory(final String categoryId);  }