Package com.sgs.common.database
Class Pack
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.Pack
-
public class Pack extends HibernateObject
This class represents a serialized pack from production This class allows for each pack of a produced item to have it's own unique serial number This allows each individual pack to be traced on it's own- Author:
- SGSystems
-
-
Field Summary
-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description Pack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Batch
getBatch()
java.lang.String
getConstituentLotNo()
Container
getContainer()
java.util.Date
getDateAllocated()
double
getEaches()
java.util.Date
getTimestamp()
WeightUnit
getUnit()
User
getUser()
double
getWeight()
void
setBatch(Batch batch)
void
setConstituentLotNo(java.lang.String constituentLotNo)
void
setContainer(Container container)
void
setDateAllocated(java.util.Date dateAllocated)
void
setEaches(double eaches)
void
setTimestamp(java.util.Date timestamp)
void
setUnit(WeightUnit unit)
void
setUser(User user)
void
setWeight(double weight)
java.lang.String
toString()
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Method Detail
-
getWeight
public double getWeight()
-
getBatch
public Batch getBatch()
-
setWeight
public void setWeight(double weight)
-
setBatch
public void setBatch(Batch batch)
-
getDateAllocated
public java.util.Date getDateAllocated()
-
setDateAllocated
public void setDateAllocated(java.util.Date dateAllocated)
-
getEaches
public double getEaches()
-
setEaches
public void setEaches(double eaches)
-
getConstituentLotNo
public java.lang.String getConstituentLotNo()
-
setConstituentLotNo
public void setConstituentLotNo(java.lang.String constituentLotNo)
-
getUnit
public WeightUnit getUnit()
-
setUnit
public void setUnit(WeightUnit unit)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getContainer
public Container getContainer()
-
setContainer
public void setContainer(Container container)
-
getTimestamp
public java.util.Date getTimestamp()
-
setTimestamp
public void setTimestamp(java.util.Date timestamp)
-
getUser
public User getUser()
-
setUser
public void setUser(User user)
-
-