abstractorders.java
来自「Hibernate一对多和多对一双向: 运行平台 Windows 2000 W」· Java 代码 · 共 87 行
JAVA
87 行
package com.cat.hibernate.order;
import com.cat.hibernate.customer.Customers;
/**
* AbstractOrders generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractOrders implements java.io.Serializable {
// Fields
private Long id;
private String orderNumber;
private Long customerId;
private Customers customer;
// Constructors
/** default constructor */
public AbstractOrders() {
}
/** minimal constructor */
public AbstractOrders(Long id, Long customerId) {
this.id = id;
this.customerId = customerId;
}
/** full constructor */
public AbstractOrders(Long id, String orderNumber, Long customerId) {
this.id = id;
this.orderNumber = orderNumber;
this.customerId = customerId;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getOrderNumber() {
return this.orderNumber;
}
public void setOrderNumber(String orderNumber) {
this.orderNumber = orderNumber;
}
public Long getCustomerId() {
return this.customerId;
}
public void setCustomerId(Long customerId) {
this.customerId = customerId;
}
public Customers getCustomer()
{
return this.customer;
}
public void setCustomer(Customers customer)
{
this.customer=customer;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?