Class DefaultSortingUtils
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.DefaultSortingUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<jakarta.persistence.criteria.Order> addPrimaryKeyIfNecessary
(jakarta.persistence.criteria.From<?, ?> queryRoot, DataModel dataModel, org.hibernate.Session session, List<jakarta.persistence.criteria.Order> ordering) Adds the primary key as last sorting option if primary key column is not already used for sortingstatic List
<jakarta.persistence.criteria.Order> getDefaultOrdering
(EntityModel entityModel, DataModel dataModel, FieldResolver fieldResolver, org.hibernate.Session session, jakarta.persistence.criteria.From<?, ?> queryRoot) Gets (insecure) default sorting for the passed entity model
-
Constructor Details
-
DefaultSortingUtils
public DefaultSortingUtils()
-
-
Method Details
-
addPrimaryKeyIfNecessary
public static List<jakarta.persistence.criteria.Order> addPrimaryKeyIfNecessary(jakarta.persistence.criteria.From<?, ?> queryRoot, DataModel dataModel, org.hibernate.Session session, List<jakarta.persistence.criteria.Order> ordering) Adds the primary key as last sorting option if primary key column is not already used for sorting -
getDefaultOrdering
public static List<jakarta.persistence.criteria.Order> getDefaultOrdering(EntityModel entityModel, DataModel dataModel, FieldResolver fieldResolver, org.hibernate.Session session, jakarta.persistence.criteria.From<?, ?> queryRoot) Gets (insecure) default sorting for the passed entity model
-