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

📄 onetomany.java

📁 人力资源管理系统主要包括:人员管理、招聘管理、培训管理、奖惩管理和薪金管理五大管理模块。
💻 JAVA
字号:
//$Id: OneToMany.java,v 1.7.2.5 2003/12/01 05:29:15 oneovthafew Exp $package net.sf.hibernate.mapping;import java.util.Iterator;import net.sf.hibernate.MappingException;import net.sf.hibernate.engine.Mapping;import net.sf.hibernate.loader.OuterJoinLoader;import net.sf.hibernate.type.EntityType;import net.sf.hibernate.type.Type;/** * A mapping for a one-to-many association * @author Gavin King */public class OneToMany implements Value {		private EntityType type;	private Table referencingTable;	private PersistentClass associatedClass;		public EntityType getEntityType() {		return type;	}		public OneToMany(PersistentClass owner) throws MappingException {		this.referencingTable = (owner==null) ? null : owner.getTable();	}		public void setType(EntityType type) {		this.type = type;	}	public PersistentClass getAssociatedClass() {		return associatedClass;	}	public void setAssociatedClass(PersistentClass associatedClass) {		this.associatedClass = associatedClass;	}	public void createForeignKey() {		// no foreign key element of for a one-to-many	}	public Iterator getColumnIterator() {		return associatedClass.getKey().getColumnIterator();	}	public int getColumnSpan() {		return associatedClass.getKey().getColumnSpan();	}	public Formula getFormula() {		return null;	}	public int getOuterJoinFetchSetting() {		return OuterJoinLoader.EAGER;	}	public Table getTable() {		return referencingTable;	}	public Type getType() {		return getEntityType();	}	public boolean isNullable() {		return false;	}	public boolean isSimpleValue() {		return false;	}	public boolean isUnique() {		return false;	}	public boolean isValid(Mapping mapping) throws MappingException {		return true;	}}

⌨️ 快捷键说明

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