package com.mossle.officesupply.persistence.domain;
// Generated by Hibernate Tools
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
* OfficesupplyInfo .
*
* @author Lingo
*/
@Entity
@Table(name = "OFFICESUPPLY_INFO")
public class OfficesupplyInfo implements java.io.Serializable {
private static final long serialVersionUID = 0L;
/** null. */
private Long id;
/** null. */
private String name;
/** null. */
private String code;
/** null. */
private Double price;
/** null. */
private String unit;
/** null. */
private String type;
/** null. */
private String photo;
/** null. */
private String description;
/** . */
private Set<OfficesupplyReceive> officesupplyReceives = new HashSet<OfficesupplyReceive>(
0);
public OfficesupplyInfo() {
}
public OfficesupplyInfo(Long id) {
this.id = id;
}
public OfficesupplyInfo(Long id, String name, String code, Double price,
String unit, String type, String photo, String description,
Set<OfficesupplyReceive> officesupplyReceives) {
this.id = id;
this.name = name;
this.code = code;
this.price = price;
this.unit = unit;
this.type = type;
this.photo = photo;
this.description = description;
this.officesupplyReceives = officesupplyReceives;
}
/** @return null. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
return this.id;
}
/**
* @param id
* null.
*/
public void setId(Long id) {
this.id = id;
}
/** @return null. */
@Column(name = "NAME", length = 200)
public String getName() {
return this.name;
}
/**
* @param name
* null.
*/
public void setName(String name) {
this.name = name;
}
/** @return null. */
@Column(name = "CODE", length = 200)
public String getCode() {
return this.code;
}
/**
* @param code
* null.
*/
public void setCode(String code) {
this.code = code;
}
/** @return null. */
@Column(name = "PRICE", precision = 64, scale = 0)
public Double getPrice() {
return this.price;
}
/**
* @param price
* null.
*/
public void setPrice(Double price) {
this.price = price;
}
/** @return null. */
@Column(name = "UNIT", length = 50)
public String getUnit() {
return this.unit;
}
/**
* @param unit
* null.
*/
public void setUnit(String unit) {
this.unit = unit;
}
/** @return null. */
@Column(name = "TYPE", length = 50)
public String getType() {
return this.type;
}
/**
* @param type
* null.
*/
public void setType(String type) {
this.type = type;
}
/** @return null. */
@Column(name = "PHOTO", length = 200)
public String getPhoto() {
return this.photo;
}
/**
* @param photo
* null.
*/
public void setPhoto(String photo) {
this.photo = photo;
}
/** @return null. */
@Column(name = "DESCRIPTION", length = 200)
public String getDescription() {
return this.description;
}
/**
* @param description
* null.
*/
public void setDescription(String description) {
this.description = description;
}
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "officesupplyInfo")
public Set<OfficesupplyReceive> getOfficesupplyReceives() {
return this.officesupplyReceives;
}
/**
* @param officesupplyReceives
* .
*/
public void setOfficesupplyReceives(
Set<OfficesupplyReceive> officesupplyReceives) {
this.officesupplyReceives = officesupplyReceives;
}
}