【Java开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了Java开源代码-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;
}
}
上一篇:
customer$jsp.java
下一篇:
汝康皮肤护理液医治烧伤的可行性和效果分析