18 package org.turro.erp.entity;
20 import java.util.HashSet;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.GenerationType;
26 import javax.persistence.Id;
27 import javax.persistence.ManyToOne;
28 import javax.persistence.OneToMany;
37 @GeneratedValue(strategy=GenerationType.IDENTITY)
38 @Column(name=
"IDENTIFIER")
41 private String name, initials;
48 @OneToMany(mappedBy =
"rootUnit")
49 private Set<MeasureUnit> relatedUnits =
new HashSet<MeasureUnit>();
64 this.initials = initials;
88 this.relatedUnits = relatedUnits;
96 this.rootUnit = rootUnit;
void setRelatedUnits(Set< MeasureUnit > relatedUnits)
void setInitials(String initials)
MeasureUnit getRootUnit()
void setRootUnit(MeasureUnit rootUnit)
void setName(String name)
Set< MeasureUnit > getRelatedUnits()
void setRatio(double ratio)