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

📄 toone.java

📁 用Java实现的23个常用设计模式源代码
💻 JAVA
字号:
//$Id: ToOne.java,v 1.1.2.2 2003/11/06 13:43:22 oneovthafew Exp $package net.sf.hibernate.mapping;import net.sf.hibernate.MappingException;/** * A simple-point association (ie. a reference to another entity). * @author Gavin King */public abstract class ToOne extends SimpleValue implements Fetchable {		private int joinedFetch;	protected String referencedPropertyName;		protected ToOne(Table table) {		super(table);	}			public int getOuterJoinFetchSetting() { 		return joinedFetch;	}		public void setOuterJoinFetchSetting(int joinedFetch) { 		this.joinedFetch=joinedFetch;	}		public abstract void setTypeByReflection(Class propertyClass, String propertyName) throws MappingException;	public abstract void createForeignKey();		public String getReferencedPropertyName() {		return referencedPropertyName;	}	public void setReferencedPropertyName(String string) {		referencedPropertyName = string;	}}

⌨️ 快捷键说明

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