Skip to content
Browse files

updates from chuck

  • Loading branch information...
1 parent 2e376bf commit dd257f632ca85cfa360089bc96fca98053dd8542 @n8han committed
View
8 databinder-models-hib/src/main/java/net/databinder/models/hib/BaseCriteriaBuildAndSort.java
@@ -29,7 +29,13 @@
import org.hibernate.criterion.CriteriaSpecification;
import org.hibernate.criterion.Order;
-public class BaseCriteriaBuildAndSort implements OrderingCriteriaBuilder, Serializable {
+/**
+ * Abstract base class for building OrderedCriteriaBuilders. It handles the sorting.
+ * Subclasses should call super.buildUnordered() when overriding.
+ *
+ * Avoids problems with duplicate Aliases by having all the Criteria building code in one location.
+ */
+public abstract class BaseCriteriaBuildAndSort implements OrderingCriteriaBuilder, Serializable {
protected Set<String> aliases = new HashSet<String>();
View
7 databinder-models-hib/src/main/java/net/databinder/models/hib/CriteriaBuildAndSort.java
@@ -29,15 +29,12 @@
import org.hibernate.criterion.Order;
/**
- * Abstract base class for building OrderedCriteriaBuilders. It handles the sorting.
- * Subclasses should call super.buildUnordered() when overriding.
- *
- * Avoids problems with duplicate Aliases by having all the Criteria building code in one location.
+ * Abstract base class for building OrderedCriteriaBuilders. Uses an ISortStateLocator to configure
+ * the sorting. Subclasses should call super.buildUnordered() when overriding.
*
* @author Mark Southern
*/
public abstract class CriteriaBuildAndSort extends BaseCriteriaBuildAndSort implements ISortStateLocator {
-
private SingleSortState sortState = new SingleSortState();
public CriteriaBuildAndSort(final String defaultSortProperty, final boolean sortAscending, final boolean sortCased) {

0 comments on commit dd257f6

Please sign in to comment.
Something went wrong with that request. Please try again.