toone.java

来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 46 行

JAVA
46
字号
//$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 + =
减小字号Ctrl + -
显示快捷键?