@Test(expected = NoResultException.class) public void findByUUIDWithUnknownUUID() { jpaThemeMapper.findByUUID("12345678-90abcde12-3456-7890abcde123"); }
public Theme findByUUID(final String uuid) { Query q = getEntityManager().createQuery( "from Theme where uuid = :uuid").setParameter("uuid", uuid.toLowerCase()); return (Theme) q.getSingleResult(); }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public Theme findByUUID(final String uuid) { Query q = getEntityManager().createQuery( "from Theme where uuid = :uuid").setParameter("uuid", uuid.toLowerCase()); return (Theme) q.getSingleResult(); } }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public Theme findByUUID(final String uuid) { Query q = getEntityManager().createQuery( "from Theme where uuid = :uuid").setParameter("uuid", uuid.toLowerCase()); return (Theme) q.getSingleResult(); } ThemeMapper(final QueryOptimizer inQueryOptimizer); }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public Theme findByUUID(final String uuid) { Query q = getEntityManager().createQuery( "from Theme where uuid = :uuid").setParameter("uuid", uuid.toLowerCase()); return (Theme) q.getSingleResult(); } 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 findByUUID(final String uuid) { Query q = getEntityManager().createQuery( "from Theme where uuid = :uuid").setParameter("uuid", uuid.toLowerCase()); return (Theme) q.getSingleResult(); } 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);  }