event.java

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

JAVA
79
字号
package com.manning.hq.ch03;import java.util.Date;import java.util.Set;/** * Version of the Event class for Chapter 3. * * @author Nick Heudecker * @author Patrick Peak */public class Event {	private Long id;	private String name;	private Date startDate;	private int duration;	private Set speakers;    private Set attendees;    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;    }	public void setSpeakers(Set speakers) {		this.speakers = speakers;	}		public Set getSpeakers() {		return speakers;	}    public Set getAttendees() {        return attendees;    }    public void setAttendees(Set attendees) {        this.attendees = attendees;    }}

⌨️ 快捷键说明

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