ItEr35S14CUAdministracionMateriaisItEr34S14: Started the implementation of MaterialCategory

Implemented methods to create, get/set name and get/set parent.
This commit is contained in:
Diego Pino Garcia 2009-11-23 10:46:54 +01:00 committed by Javier Moran Rua
parent 3b4be576ae
commit caac2b3988

View file

@ -48,4 +48,28 @@ public class MaterialCategory extends BaseEntity {
protected MaterialCategory() {
}
public static MaterialCategory create(String name) {
return (MaterialCategory) create(new MaterialCategory(name));
}
protected MaterialCategory(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public MaterialCategory getParent() {
return parent;
}
public void setParent(MaterialCategory parentId) {
this.parent = parentId;
}
}