📄 customer.java
字号:
package com.order.vo;
import java.util.*;
/**
* @hibernate.class
* table="T_Customer"
*/
public class Customer {
private Long customerUID;
private String customerName;
private String email;
private String phone;
private String address;
private Set orders;
public Customer() {
}
/**
* @hibernate.id
* column = "CustomerUID"
* generator-class="hilo"
* unsaved-value=null
*
*/
public Long getCustomerUID() {
return customerUID;
}
public void setCustomerUID(Long customerUID) {
this.customerUID = customerUID;
}
/**
* @hibernate.property
* column = "CustomerName"
* @return String
*/
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
/**
* @hibernate.property
* column = "Email"
* @return String
*/
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
/**
* @hibernate.property
* column = "Phone"
* @return String
*/
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
/**
* @hibernate.property
* column = "Address"
* @return String
*/
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
/**
* @hibernate.set
* cascade = "save-update"
* lazy = "true"
* @hibernate.collection-one-to-many
* class="com.order.vo.Order"
* @hibernate.collection-key
* column = "CustomerUID"
* @return Set
*/
public Set getOrders() {
return orders;
}
public void setOrders(Set orders) {
this.orders = orders;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -