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

📄 compositeelementpropertymapping.java

📁 用Java实现的23个常用设计模式源代码
💻 JAVA
字号:
//$Id: CompositeElementPropertyMapping.java,v 1.1.2.5 2003/09/08 11:32:25 oneovthafew Exp $
package net.sf.hibernate.collection;

import net.sf.hibernate.MappingException;
import net.sf.hibernate.engine.SessionFactoryImplementor;
import net.sf.hibernate.persister.AbstractPropertyMapping;
import net.sf.hibernate.type.AbstractComponentType;
import net.sf.hibernate.type.Type;

/**
 * @author Gavin King
 */
public class CompositeElementPropertyMapping extends AbstractPropertyMapping {
	
	private final AbstractComponentType compositeType;
	public CompositeElementPropertyMapping(String[] elementColumns, AbstractComponentType compositeType, SessionFactoryImplementor factory) 
	throws MappingException {
		
		this.compositeType = compositeType;
		
		initComponentPropertyPaths(null, compositeType, elementColumns, factory);

	}
	
	public Type getType() {
		return compositeType;
	}

	protected String getClassName() {
		return compositeType.getName();
	}

}

⌨️ 快捷键说明

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