类org.hibernate.annotations.SortNatural源码实例Demo

下面列出了怎么用org.hibernate.annotations.SortNatural的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: lams   文件: CollectionBinder.java
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()
			)
	);
}
 
源代码2 项目: mycore   文件: MCRUser.java
@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;
}
 
源代码3 项目: lams   文件: CollectionBinder.java
public void setNaturalSort(SortNatural naturalSort) {
	this.naturalSort = naturalSort;
}
 
 类所在包
 类方法
 同包方法