levels.java

来自「struts+spring+hibernate例子」· Java 代码 · 共 87 行

JAVA
87
字号
package com.shop.entity;

import java.util.HashSet;
import java.util.Set;

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

public class Levels implements java.io.Serializable {

	// Fields

	private Integer id;
	private String levelname;
	private String photo;
	private String description;
	private Set users = new HashSet(0);

	// Constructors

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

	/** minimal constructor */
	public Levels(Integer id, String levelname, String photo) {
		this.id = id;
		this.levelname = levelname;
		this.photo = photo;
	}

	/** full constructor */
	public Levels(Integer id, String levelname, String photo,
			String description, Set users) {
		this.id = id;
		this.levelname = levelname;
		this.photo = photo;
		this.description = description;
		this.users = users;
	}

	// Property accessors

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

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

	public String getLevelname() {
		return this.levelname;
	}

	public void setLevelname(String levelname) {
		this.levelname = levelname;
	}

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

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

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

}

⌨️ 快捷键说明

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