📄 abstractbook.java
字号:
/*
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*
* Created Fri Jun 02 16:56:32 CST 2006 by MyEclipse Hibernate Tool.
*/
package com.zhang.struts.po;
import java.io.Serializable;
/**
* A class that represents a row in the book table.
* You can customize the behavior of this class by editing the class, {@link Book()}.
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*/
public abstract class AbstractBook
implements Serializable
{
/** The cached hash code value for this instance. Settting to 0 triggers re-calculation. */
private int hashValue = 0;
/** The composite primary key value. */
private java.lang.Integer id;
/** The value of the orderitemSet one-to-many association. */
private java.util.Set orderitemSet;
/** The value of the simple name property. */
private java.lang.String name;
/** The value of the simple author property. */
private java.lang.String author;
/** The value of the simple bookConcern property. */
private java.lang.String bookConcern;
/** The value of the simple price property. */
private java.lang.Double price;
/** The value of the simple nowPrice property. */
private java.lang.Double nowPrice;
/** The value of the simple isbn property. */
private java.lang.String isbn;
/** The value of the simple size property. */
private java.lang.String size;
/** The value of the simple fontNumber property. */
private java.lang.Integer fontNumber;
/** The value of the simple pic property. */
private java.lang.String pic;
/**
* Simple constructor of AbstractBook instances.
*/
public AbstractBook()
{
}
/**
* Constructor of AbstractBook instances given a simple primary key.
* @param id
*/
public AbstractBook(java.lang.Integer id)
{
this.setId(id);
}
/**
* Return the simple primary key value that identifies this object.
* @return java.lang.Integer
*/
public java.lang.Integer getId()
{
return id;
}
/**
* Set the simple primary key value that identifies this object.
* @param id
*/
public void setId(java.lang.Integer id)
{
this.hashValue = 0;
this.id = id;
}
/**
* Return the value of the name column.
* @return java.lang.String
*/
public java.lang.String getName()
{
return this.name;
}
/**
* Set the value of the name column.
* @param name
*/
public void setName(java.lang.String name)
{
this.name = name;
}
/**
* Return the value of the author column.
* @return java.lang.String
*/
public java.lang.String getAuthor()
{
return this.author;
}
/**
* Set the value of the author column.
* @param author
*/
public void setAuthor(java.lang.String author)
{
this.author = author;
}
/**
* Return the value of the book_concern column.
* @return java.lang.String
*/
public java.lang.String getBookConcern()
{
return this.bookConcern;
}
/**
* Set the value of the book_concern column.
* @param bookConcern
*/
public void setBookConcern(java.lang.String bookConcern)
{
this.bookConcern = bookConcern;
}
/**
* Return the value of the price column.
* @return java.lang.Double
*/
public java.lang.Double getPrice()
{
return this.price;
}
/**
* Set the value of the price column.
* @param price
*/
public void setPrice(java.lang.Double price)
{
this.price = price;
}
/**
* Return the value of the now_price column.
* @return java.lang.Double
*/
public java.lang.Double getNowPrice()
{
return this.nowPrice;
}
/**
* Set the value of the now_price column.
* @param nowPrice
*/
public void setNowPrice(java.lang.Double nowPrice)
{
this.nowPrice = nowPrice;
}
/**
* Return the value of the isbn column.
* @return java.lang.String
*/
public java.lang.String getIsbn()
{
return this.isbn;
}
/**
* Set the value of the isbn column.
* @param isbn
*/
public void setIsbn(java.lang.String isbn)
{
this.isbn = isbn;
}
/**
* Return the value of the size column.
* @return java.lang.String
*/
public java.lang.String getSize()
{
return this.size;
}
/**
* Set the value of the size column.
* @param size
*/
public void setSize(java.lang.String size)
{
this.size = size;
}
/**
* Return the value of the font_number column.
* @return java.lang.Integer
*/
public java.lang.Integer getFontNumber()
{
return this.fontNumber;
}
/**
* Set the value of the font_number column.
* @param fontNumber
*/
public void setFontNumber(java.lang.Integer fontNumber)
{
this.fontNumber = fontNumber;
}
/**
* Return the value of the pic column.
* @return java.lang.String
*/
public java.lang.String getPic()
{
return this.pic;
}
/**
* Set the value of the pic column.
* @param pic
*/
public void setPic(java.lang.String pic)
{
this.pic = pic;
}
/**
* Return the value of the book_id collection.
* @return Orderitem
*/
public java.util.Set getOrderitemSet()
{
return this.orderitemSet;
}
/**
* Set the value of the book_id collection.
* @param orderitemSet
*/
public void setOrderitemSet(java.util.Set orderitemSet)
{
this.orderitemSet = orderitemSet;
}
/**
* Implementation of the equals comparison on the basis of equality of the primary key values.
* @param rhs
* @return boolean
*/
public boolean equals(Object rhs)
{
if (rhs == null)
return false;
if (! (rhs instanceof Book))
return false;
Book that = (Book) rhs;
if (this.getId() == null || that.getId() == null)
return false;
return (this.getId().equals(that.getId()));
}
/**
* Implementation of the hashCode method conforming to the Bloch pattern with
* the exception of array properties (these are very unlikely primary key types).
* @return int
*/
public int hashCode()
{
if (this.hashValue == 0)
{
int result = 17;
int idValue = this.getId() == null ? 0 : this.getId().hashCode();
result = result * 37 + idValue;
this.hashValue = result;
}
return this.hashValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -