org.hibernate.boot.model.source.spi.Sortable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
The core O/RM functionality as provided by Hibernate
The newest version!
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.boot.model.source.spi;
/**
* Contact to define if the source of plural attribute is sortable or not.
*
* @author Steve Ebersole
*/
public interface Sortable {
/**
* If the source of plural attribute is supposed to be sorted.
*
* @return true
the attribute will be sortable or false
means not.
*/
boolean isSorted();
/**
* The comparator class name which will be used to sort the attribute.
*
* @return Qualified class name which implements {@link java.util.Comparator} contact.
*/
String getComparatorName();
}