photoword.java

来自「J2EE(Struts+Hibernate)电子相册系统Struts、Hiber」· Java 代码 · 共 75 行

JAVA
75
字号
package angus.model;

import java.io.Serializable;

public class PhotoWord implements Serializable
{
	private int id;
	private String title;
	private String content;
	private String addDate;
	private Photo photo;
	private Client client;

	public PhotoWord()
	{
	}

	public PhotoWord(String title, String content, String addDate, Photo photo, Client client)
	{
		setTitle(title);
		setContent(content);
		setAddDate(addDate);
		setPhoto(photo);
		setClient(client);
	}

	public void setId(int id) {
		this.id = id; 
	}

	public void setTitle(String title) {
		this.title = title; 
	}

	public void setContent(String content) {
		this.content = content; 
	}

	public void setAddDate(String addDate) {
		this.addDate = addDate; 
	}

	public void setPhoto(Photo photo) {
		this.photo = photo; 
	}

	public void setClient(Client client) {
		this.client = client; 
	}

	public int getId() {
		return (this.id); 
	}

	public String getTitle() {
		return (this.title); 
	}

	public String getContent() {
		return (this.content); 
	}

	public String getAddDate() {
		return (this.addDate); 
	}

	public Photo getPhoto() {
		return (this.photo); 
	}

	public Client getClient() {
		return (this.client); 
	}
}

⌨️ 快捷键说明

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