ItEr35S14CUAdministracionMateriaisItEr34S14: Started the implementation of MaterialCategory
Implemented methods to create, get/set name and get/set parent.
This commit is contained in:
parent
3b4be576ae
commit
caac2b3988
1 changed files with 24 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue