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

📄 map.java

📁 一个Java持久层类库
💻 JAVA
字号:
//$Id: Map.java 7714 2005-08-01 16:29:33Z oneovthafew $package org.hibernate.mapping;import org.hibernate.MappingException;import org.hibernate.type.CollectionType;import org.hibernate.type.TypeFactory;/** * A map has a primary key consisting of * the key columns + index columns. */public class Map extends IndexedCollection {	public Map(PersistentClass owner) {		super(owner);	}		public boolean isMap() {		return true;	}	public CollectionType getDefaultCollectionType() {		if ( isSorted() ) {			return TypeFactory.sortedMap( getRole(), getReferencedPropertyName(), isEmbedded(), getComparator() );		}		else if ( hasOrder() ) {			return TypeFactory.orderedMap( getRole(), getReferencedPropertyName(), isEmbedded() );		}		else {			return TypeFactory.map( getRole(), getReferencedPropertyName(), isEmbedded() );		}	}	public void createAllKeys() throws MappingException {		super.createAllKeys();		if ( !isInverse() ) getIndex().createForeignKey();	}	public Object accept(ValueVisitor visitor) {		return visitor.accept(this);	}}

⌨️ 快捷键说明

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