event.java

来自「hibernate quickly 一书的各章节源代码」· Java 代码 · 共 63 行

JAVA
63
字号
package com.manning.hq.ch03.proxies;import com.manning.hq.ch03.Location;import java.util.Date;/** * Version of the Event class for Chapter 3, regarding proxies. * * @author Nick Heudecker * @author Patrick Peak */public class Event {	private Long id;	private String name;	private Date startDate;	private int duration;    private Location location;	public void setId(Long id) {		this.id = id;	}		public Long getId() {		return id;	}    public String getName() {        return name;    }    public void setName(String name) {        this.name = name;    }    public Date getStartDate() {        return startDate;    }    public void setStartDate(Date startDate) {        this.startDate = startDate;    }    public int getDuration() {        return duration;    }    public void setDuration(int duration) {        this.duration = duration;    }    public Location getLocation() {        return location;    }    public void setLocation(Location location) {        this.location = location;    }}

⌨️ 快捷键说明

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