📄 withlazyset.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 + -