config.bc.jpa.domain.Category.orm.xml Maven / Gradle / Ivy
SELECT category FROM org.broadleafcommerce.core.catalog.domain.Category category
ORDER BY category.id
SELECT category FROM org.broadleafcommerce.core.catalog.domain.Category category
WHERE category.name = :categoryName
ORDER BY category.id
SELECT category FROM org.broadleafcommerce.core.catalog.domain.Category category
LEFT OUTER JOIN category.allParentCategoryXrefs xref
WHERE category.defaultParentCategory.id IN :parentCategoryId OR xref.category.id IN :parentCategoryId
ORDER BY xref.displayOrder, category.id
SELECT category FROM org.broadleafcommerce.core.catalog.domain.Category category
WHERE category.urlKey = :urlKey
AND (category.archiveStatus.archived IS NULL OR category.archiveStatus.archived = 'N')
AND (category.activeStartDate < :currentDate)
AND (category.activeEndDate IS NULL OR category.activeEndDate > :currentDate)
SELECT category FROM org.broadleafcommerce.core.catalog.domain.Category category
LEFT OUTER JOIN category.allParentCategoryXrefs xref
WHERE (category.defaultParentCategory.id = :parentCategoryId OR xref.category.id = :parentCategoryId)
AND (category.archiveStatus.archived IS NULL OR category.archiveStatus.archived = 'N')
AND (category.activeStartDate < :currentDate)
AND (category.activeEndDate IS NULL OR category.activeEndDate > :currentDate)
ORDER BY xref.displayOrder, category.id
SELECT category
FROM org.broadleafcommerce.core.catalog.domain.Category category
WHERE category.url = :url
AND (category.archiveStatus.archived IS NULL OR category.archiveStatus.archived = 'N')
AND (category.activeStartDate < :currentDate)
AND (category.activeEndDate IS NULL OR category.activeEndDate > :currentDate)