@Test public void findDefault() { Theme theme = jpaThemeMapper.findDefault(); assertNotNull("Did not find the default theme and did not throw exception", theme); assertEquals("Theme id does not match", testThemeId, theme.getId()); }
public Theme findDefault() { Query q = getEntityManager().createQuery("from Theme order by id"); return (Theme) q.getResultList().get(0); }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public Theme findDefault() { Query q = getEntityManager().createQuery("from Theme order by id"); return (Theme) q.getResultList().get(0); } }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public Theme findDefault() { Query q = getEntityManager().createQuery("from Theme order by id"); return (Theme) q.getResultList().get(0); } ThemeMapper(final QueryOptimizer inQueryOptimizer); }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public Theme findDefault() { Query q = getEntityManager().createQuery("from Theme order by id"); return (Theme) q.getResultList().get(0); } ThemeMapper(final QueryOptimizer inQueryOptimizer); Theme findByUrl(final String themeLocation); Theme findByUUID(final String uuid); Theme findDefault(); PagedSet<Theme> findForCategorySortedByPopularity(
            final String inCategory, final int inStart, final int inEnd); PagedSet<Theme> findSortedByPopularity(final int inStart,
            final int inEnd); PagedSet<Theme> findForCategorySortedByRecent(
            final String inCategory, final int inStart, final int inEnd); PagedSet<Theme> findSortedByRecent(final int inStart, final int inEnd); void delete(final Theme inTheme); }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public Theme findDefault() { Query q = getEntityManager().createQuery("from Theme order by id"); return (Theme) q.getResultList().get(0); } ThemeMapper(final QueryOptimizer inQueryOptimizer); Theme findByUrl(final String themeLocation); Theme findByUUID(final String uuid); Theme findDefault(); PagedSet<Theme> findForCategorySortedByPopularity(
            final String inCategory, final int inStart, final int inEnd); PagedSet<Theme> findSortedByPopularity(final int inStart,
            final int inEnd); PagedSet<Theme> findForCategorySortedByRecent(
            final String inCategory, final int inStart, final int inEnd); PagedSet<Theme> findSortedByRecent(final int inStart, final int inEnd); void delete(final Theme inTheme);  }