subscribe.java

来自「基于struts+hibernate的电子商务网站。可运行。数据库mysql」· Java 代码 · 共 55 行

JAVA
55
字号
package tarena.entity;

/**
 * Subscribe entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Subscribe implements java.io.Serializable {

	// Fields

	private Integer id;
	private Topic topic;
	private User user;

	// Constructors

	/** default constructor */
	public Subscribe() {
	}

	/** full constructor */
	public Subscribe(Topic topic, User user) {
		this.topic = topic;
		this.user = user;
	}

	// Property accessors

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

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

	public Topic getTopic() {
		return this.topic;
	}

	public void setTopic(Topic topic) {
		this.topic = topic;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}

⌨️ 快捷键说明

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