📄 abstractorderitem.java
字号:
/*
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*
* Created Sat Sep 03 11:06:25 CST 2005 by MyEclipse Hibernate Tool.
*/
package com.ascent.bean;
import java.io.Serializable;
/**
* A class that represents a row in the orderitem table.
* You can customize the behavior of this class by editing the class, {@link Orderitem()}.
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized * by MyEclipse Hibernate tool integration.
*/
public abstract class AbstractOrderitem
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 orderitemId;
/** The value of the simple orderid property. */
private java.lang.Integer orderid;
/** The value of the simple bookid property. */
private java.lang.Integer bookid;
/** The value of the simple bookid property. */
private java.lang.Integer quantity;
private Orders orders;
public Orders getOrders(){
return this.orders;
}
public void setOrders(Orders orders){
this.orders = orders;
}
/**
* Simple constructor of AbstractOrderitem instances.
*/
public AbstractOrderitem()
{
}
/**
* Constructor of AbstractOrderitem instances given a simple primary key.
* @param orderitemId
*/
public AbstractOrderitem(java.lang.Integer orderitemId)
{
this.setOrderitemId(orderitemId);
}
/**
* Return the simple primary key value that identifies this object.
* @return java.lang.Integer
*/
public java.lang.Integer getOrderitemId()
{
return orderitemId;
}
/**
* Set the simple primary key value that identifies this object.
* @param orderitemId
*/
public void setOrderitemId(java.lang.Integer orderitemId)
{
this.hashValue = 0;
this.orderitemId = orderitemId;
}
/**
* Return the value of the orderid column.
* @return java.lang.Integer
*/
public java.lang.Integer getOrderid()
{
return this.orderid;
}
/**
* Set the value of the orderid column.
* @param orderid
*/
public void setOrderid(java.lang.Integer orderid)
{
this.orderid = orderid;
}
/**
* Return the value of the bookid column.
* @return java.lang.Integer
*/
public java.lang.Integer getBookid()
{
return this.bookid;
}
/**
* Set the value of the bookid column.
* @param bookid
*/
public void setBookid(java.lang.Integer bookid)
{
this.bookid = bookid;
}
/**
* Return the value of the bookid column.
* @return java.lang.Integer
*/
public java.lang.Integer getQuantity()
{
return this.quantity;
}
/**
* Set the value of the bookid column.
* @param bookid
*/
public void setQuantity(java.lang.Integer quantity)
{
this.quantity = quantity;
}
/**
* 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 Orderitem))
return false;
Orderitem that = (Orderitem) rhs;
if (this.getOrderitemId() == null || that.getOrderitemId() == null)
return false;
return (this.getOrderitemId().equals(that.getOrderitemId()));
}
/**
* 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 orderitemIdValue = this.getOrderitemId() == null ? 0 : this.getOrderitemId().hashCode();
result = result * 37 + orderitemIdValue;
this.hashValue = result;
}
return this.hashValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -