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

📄 port.java

📁 hibernate3.2.6源码和jar包
💻 JAVA
字号:
//$Id: Port.java 11282 2007-03-14 22:05:59Z epbernard $package org.hibernate.test.annotations;import java.util.Set;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.Id;import javax.persistence.OneToMany;/** * Used to test that annotated classes can have one-to-many * relationships with hbm loaded classes. */@Entity()public class Port {	private Long id;	private Set<Boat> boats;	@Id	@GeneratedValue	public Long getId() {		return id;	}	public void setId(Long long1) {		id = long1;	}	@OneToMany	public Set<Boat> getBoats() {		return boats;	}	public void setBoats(Set<Boat> boats) {		this.boats = boats;	}}

⌨️ 快捷键说明

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