📄 setbinder.java
字号:
package org.hibernate.cfg.annotations;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.hibernate.annotations.OrderBy;import org.hibernate.cfg.Environment;import org.hibernate.mapping.Collection;import org.hibernate.mapping.PersistentClass;/** * Bind a set. * * @author Matthew Inger */public class SetBinder extends CollectionBinder { private static Log log = LogFactory.getLog( SetBinder.class ); public SetBinder() { } public SetBinder(boolean sorted) { super( sorted ); } protected Collection createCollection(PersistentClass persistentClass) { return new org.hibernate.mapping.Set( persistentClass ); } public void setSqlOrderBy(OrderBy orderByAnn) { if ( orderByAnn != null ) { if ( Environment.jvmSupportsLinkedHashCollections() ) { super.setSqlOrderBy( orderByAnn ); } else { log.warn( "Attribute \"order-by\" ignored in JDK1.3 or less" ); } } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -