X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjshopcore%2Fmodel%2Fcategory%2FCategory.java;h=43b2d26e7dc5c151faea3c7f0f958ecbb213d808;hb=672084ab2c551cbff8c8c424780ed344f7c13925;hp=1fb60e81633f2502f3e961bfebc036cc05ce7a8b;hpb=ea2ac9942269d6155aaf6dc62213791c1bb15984;p=jcustomer-core.git diff --git a/src/org/mxchange/jshopcore/model/category/Category.java b/src/org/mxchange/jshopcore/model/category/Category.java index 1fb60e8..43b2d26 100644 --- a/src/org/mxchange/jshopcore/model/category/Category.java +++ b/src/org/mxchange/jshopcore/model/category/Category.java @@ -20,52 +20,57 @@ import java.io.Serializable; /** * An interface for categories - * - * @author Roland Haeder + *

+ * @author Roland Haeder */ -public interface Category extends Comparable, Serializable { +public interface Category extends Serializable { + + /** + * Copies all properties from other category to this + *

+ * @param category Source category instance + */ + public void copyAll (final Category category); /** * Id number of category + *

* @return the id */ public Long getCategoryId (); /** * Id number of category + *

* @param id the id to set */ public void setCategoryId (final Long id); /** - * Parent category id - * @return the parent + * Parent category + *

+ * @return the parent category */ - public Long getParentId (); + public Category getParentCategory (); /** - * Parent category id - * @param parent the parent to set + * Parent category + *

+ * @param parentCategory the parent category to set */ - public void setParentId (final Long parent); + public void setParentCategory (final Category parentCategory); /** * Title of category + *

* @return the title */ - public String getTitle (); + public String getCategoryTitle (); /** * Title of category + *

* @param title the title to set */ - public void setTitle (final String title); - - /** - * Compare method - * @param category Category to compare to - * @return Comparison value - */ - @Override - public int compareTo (final Category category); + public void setCategoryTitle (final String title); }