【Java开源代码栏目提醒】:网学会员为广大网友收集整理了,AbstractProduct.java,希望对大家有所帮助!
package com.hbp.chapter4.ex5.model;
import java.util.Set;
/**
* AbstractProduct generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractProduct implements java.io.Serializable {
// Fields
private Integer id;
private String name;
private Float price;
private Set orders;
// Constructors
/** default constructor */
public AbstractProduct() {
}
/** full constructor */
public AbstractProduct(String name, Float price) {
this.name = name;
this.price = price;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Float getPrice() {
return this.price;
}
public void setPrice(Float price) {
this.price = price;
}
public Set getOrders() {
return orders;
}
public void setOrders(Set orders) {
this.orders = orders;
}
}