Skip to content

Commit

Permalink
Changed Category bean
Browse files Browse the repository at this point in the history
  • Loading branch information
jonelrelucio committed May 16, 2023
1 parent 33044de commit 2cb3b95
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
public class Category {

private int id;
private int code;
private Boolean isTop = false;
private String name;
private List<Category> subcategories = new ArrayList<Category>();

public int getId() { return id; }
public int getCode() { return code; }
public boolean isTop() { return isTop; }
public String getName() { return name; }
public List<Category> getSubcategories() { return subcategories; }
Expand All @@ -21,7 +19,6 @@ public class Category {
public void setIsTop(boolean isTop) { this.isTop = isTop; }
public void setName( String name ) { this.name = name; }
public void addSubcategory(Category category) { subcategories.add(category); }
public void setCode(int code) { this.code = code; }


}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
public class Category {

private int id;
private int code;
private Boolean isTop = false;
private String name;
private List<Category> subcategories = new ArrayList<Category>();
Expand All @@ -15,10 +14,6 @@ public int getId() {
return id;
}

public int getCode() {
return code;
}

public boolean isTop() {
return isTop;
}
Expand Down Expand Up @@ -47,8 +42,4 @@ public void addSubcategory(Category category) {
subcategories.add(category);
}

public void setCode(int code) {
this.code = code;
}

}

0 comments on commit 2cb3b95

Please sign in to comment.