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

📄 withlazyset.java

📁 hibernate_tutorial经典教程
💻 JAVA
字号:
/* * Created on Sep 20, 2004 * * To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */package tutorial.dev.lazy;import java.util.Set;/** * @hibernate.class */public class WithLazySet {	private Long id;	private Set lazy;	/**	 * @hibernate.id	 *	column="ID"	 *	generator-class="hilo" 	 *	unsaved-value="null"	 */	public Long getId() {return id;}	public void setId(Long id) {this.id = id;}	/**	 * @hibernate.set	 * 	cascade="save-update"	 *  lazy="true"	 * @hibernate.collection-one-to-many	 * 	class="tutorial.dev.lazy.InLazySet"	 * @hibernate.collection-key	 * 	column="FK_LAZY"	 */	public Set getLazy() {		return lazy;	}	public void setLazy(Set lazy) {		this.lazy = lazy;	}}

⌨️ 快捷键说明

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