📄 abstractbook.java
字号:
/*
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*
* Created Thu Sep 01 14:30:18 CST 2005 by MyEclipse Hibernate Tool.
*/
package com.ascent.bean;
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 bookId;
/** The value of the simple bookName property. */
private java.lang.String bookName;
/** The value of the simple bookAuthor property. */
private java.lang.String bookAuthor;
/** The value of the simple bookPrice property. */
private java.lang.Double bookPrice;
/** The value of the simple image property. */
private java.lang.String image;
/** The value of the simple descibe property. */
private java.lang.String descibe;
/**
* Simple constructor of AbstractBook instances.
*/
public AbstractBook()
{
}
/**
* Constructor of AbstractBook instances given a simple primary key.
* @param bookId
*/
public AbstractBook(java.lang.Integer bookId)
{
this.setBookId(bookId);
}
/**
* Return the simple primary key value that identifies this object.
* @return java.lang.Integer
*/
public java.lang.Integer getBookId()
{
return bookId;
}
/**
* Set the simple primary key value that identifies this object.
* @param bookId
*/
public void setBookId(java.lang.Integer bookId)
{
this.hashValue = 0;
this.bookId = bookId;
}
/**
* Return the value of the book_name column.
* @return java.lang.String
*/
public java.lang.String getBookName()
{
return this.bookName;
}
/**
* Set the value of the book_name column.
* @param bookName
*/
public void setBookName(java.lang.String bookName)
{
this.bookName = bookName;
}
/**
* Return the value of the book_author column.
* @return java.lang.String
*/
public java.lang.String getBookAuthor()
{
return this.bookAuthor;
}
/**
* Set the value of the book_author column.
* @param bookAuthor
*/
public void setBookAuthor(java.lang.String bookAuthor)
{
this.bookAuthor = bookAuthor;
}
/**
* Return the value of the book_price column.
* @return java.lang.Double
*/
public java.lang.Double getBookPrice()
{
return this.bookPrice;
}
/**
* Set the value of the book_price column.
* @param bookPrice
*/
public void setBookPrice(java.lang.Double bookPrice)
{
this.bookPrice = bookPrice;
}
/**
* Return the value of the image column.
* @return java.lang.String
*/
public java.lang.String getImage()
{
return this.image;
}
/**
* Set the value of the image column.
* @param image
*/
public void setImage(java.lang.String image)
{
this.image = image;
}
/**
* Return the value of the descibe column.
* @return java.lang.String
*/
public java.lang.String getDescibe()
{
return this.descibe;
}
/**
* Set the value of the descibe column.
* @param descibe
*/
public void setDescibe(java.lang.String descibe)
{
this.descibe = descibe;
}
/**
* 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.getBookId() == null || that.getBookId() == null)
return false;
return (this.getBookId().equals(that.getBookId()));
}
/**
* 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 bookIdValue = this.getBookId() == null ? 0 : this.getBookId().hashCode();
result = result * 37 + bookIdValue;
this.hashValue = result;
}
return this.hashValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -