catalog.java

来自「利用javaEE开发而实现图书的购买的一个系统」· Java 代码 · 共 68 行

JAVA
68
字号
package org.yangkang.bookshop.vo;

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

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

@SuppressWarnings("serial")
public class Catalog implements java.io.Serializable {

	// Fields

	private Integer catalogId;
	private String catalogname;
	@SuppressWarnings("unchecked")
	private Set books = new HashSet(0);

	// Constructors

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

	//** minimal constructor *//*
	public Catalog(String catalogname) {
		this.catalogname = catalogname;
	}

	//** full constructor *//*
	@SuppressWarnings("unchecked")
	public Catalog(String catalogname, Set books) {
		this.catalogname = catalogname;
		this.books = books;
	}

	// Property accessors

	public Integer getCatalogId() {
		return this.catalogId;
	}

	public void setCatalogId(Integer catalogId) {
		this.catalogId = catalogId;
	}

	public String getCatalogname() {
		return this.catalogname;
	}

	public void setCatalogname(String catalogname) {
		this.catalogname = catalogname;
	}

	@SuppressWarnings("unchecked")
	public Set getBooks() {
		return this.books;
	}

	@SuppressWarnings("unchecked")
	public void setBooks(Set books) {
		this.books = books;
	}

}

⌨️ 快捷键说明

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