org.hibernate.annotations.SortNatural Java Examples

The following examples show how to use org.hibernate.annotations.SortNatural. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CollectionBinder.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
private AnnotationException buildIllegalSortCombination() {
	return new AnnotationException(
			String.format(
					"Illegal combination of annotations on %s.  Only one of @%s, @%s and @%s can be used",
					safeCollectionRole(),
					Sort.class.getName(),
					SortNatural.class.getName(),
					SortComparator.class.getName()
			)
	);
}
 
Example #2
Source File: MCRUser.java    From mycore with GNU General Public License v3.0 5 votes vote down vote up
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "MCRUserAttr",
    joinColumns = @JoinColumn(name = "id"),
    indexes = { @Index(name = "MCRUserAttributes", columnList = "name, value"),
        @Index(name = "MCRUserValues", columnList = "value") })
@SortNatural
@XmlElementWrapper(name = "attributes")
@XmlElement(name = "attribute")
public SortedSet<MCRUserAttribute> getAttributes() {
    return this.attributes;
}
 
Example #3
Source File: CollectionBinder.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public void setNaturalSort(SortNatural naturalSort) {
	this.naturalSort = naturalSort;
}