📄 abstractorders.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:49 CST 2005 by MyEclipse Hibernate Tool.
*/
package com.ascent.bean;
import java.io.Serializable;
import java.util.Set;
/**
* A class that represents a row in the orders table.
* You can customize the behavior of this class by editing the class, {@link Orders()}.
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized * by MyEclipse Hibernate tool integration.
*/
public abstract class AbstractOrders
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 orderId;
/** The value of the simple custId property. */
private java.lang.Integer custId;
/** The value of the simple totalprice property. */
private java.lang.Double totalprice;
private Set orderItems;
public Set getOrderItems(){
return this.orderItems;
}
public void setOrderItems(Set orderItems){
this.orderItems = orderItems;
}
/**
* Simple constructor of AbstractOrders instances.
*/
public AbstractOrders()
{
}
/**
* Constructor of AbstractOrders instances given a simple primary key.
* @param orderId
*/
public AbstractOrders(java.lang.Integer orderId)
{
this.setOrderId(orderId);
}
/**
* Return the simple primary key value that identifies this object.
* @return java.lang.Integer
*/
public java.lang.Integer getOrderId()
{
return orderId;
}
/**
* Set the simple primary key value that identifies this object.
* @param orderId
*/
public void setOrderId(java.lang.Integer orderId)
{
this.hashValue = 0;
this.orderId = orderId;
}
/**
* Return the value of the cust_id column.
* @return java.lang.Integer
*/
public java.lang.Integer getCustId()
{
return this.custId;
}
/**
* Set the value of the cust_id column.
* @param custId
*/
public void setCustId(java.lang.Integer custId)
{
this.custId = custId;
}
/**
* Return the value of the totalprice column.
* @return java.lang.Double
*/
public java.lang.Double getTotalprice()
{
return this.totalprice;
}
/**
* Set the value of the totalprice column.
* @param totalprice
*/
public void setTotalprice(java.lang.Double totalprice)
{
this.totalprice = totalprice;
}
/**
* 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 Orders))
return false;
Orders that = (Orders) rhs;
if (this.getOrderId() == null || that.getOrderId() == null)
return false;
return (this.getOrderId().equals(that.getOrderId()));
}
/**
* 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 orderIdValue = this.getOrderId() == null ? 0 : this.getOrderId().hashCode();
result = result * 37 + orderIdValue;
this.hashValue = result;
}
return this.hashValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -