⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collectionsecondpass.java

📁 hibernate方便的操作数据库相当不错的 请各位下载看看啊
💻 JAVA
字号:
//$Id: CollectionSecondPass.java,v 1.10 2004/12/01 00:24:08 epbernard Exp $package org.hibernate.cfg;/** * @author Emmanuel Bernard */import java.util.Map;import org.hibernate.FetchMode;import org.hibernate.MappingException;import org.hibernate.mapping.Collection;/** * Second pass for colelctions once every entity is known *  * @author Emmanuel Bernard */public class CollectionSecondPass extends SecondPass {	Ejb3JoinColumn[] keyColumns;	Ejb3JoinColumn[] inverseColumns;	String collType;	FetchMode fetchMode;		/** one to many collections */	public CollectionSecondPass(		ExtendedMappings mappings, 		Collection coll,		Ejb3JoinColumn[] keyColumns) {		super(mappings, coll);		this.keyColumns = keyColumns;	}		/** many to many collections */	public CollectionSecondPass(		ExtendedMappings mappings, 		Collection coll,		Ejb3JoinColumn[] keyColumns,		Ejb3JoinColumn[] inverseColumns,		String collType,		FetchMode fetchMode) {		super(mappings, coll);		this.keyColumns = keyColumns;		this.inverseColumns = inverseColumns;		this.collType = collType;		this.fetchMode = fetchMode;	}	/**	 * @see org.hibernate.cfg.HbmBinder	 */	void secondPass(Map persistentClasses, Map inheritedMetas) throws MappingException {		if ( isManyToMany() ) {			AnnotationBinder.bindManyToManySecondPass(				collection, 				persistentClasses,				keyColumns,				inverseColumns,				collType,				fetchMode			);		}		else {			AnnotationBinder.bindCollectionSecondPass(				collection, 				persistentClasses,				keyColumns,				(ExtendedMappings) mappings			);		}	}	private boolean isManyToMany() {		return inverseColumns != null;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -