/**
* An interface for categories
- *
- * @author Roland Haeder
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
*/
-public interface Category extends Comparable<Category>, Serializable {
+public interface Category extends Serializable {
+
+ /**
+ * Copies all properties from other category to this
+ * <p>
+ * @param category Source category instance
+ */
+ public void copyAll (final Category category);
/**
* Id number of category
+ * <p>
* @return the id
*/
public Long getCategoryId ();
/**
* Id number of category
+ * <p>
* @param id the id to set
*/
public void setCategoryId (final Long id);
/**
- * Parent category id
- * @return the parent
+ * Parent category
+ * <p>
+ * @return the parent category
*/
- public Long getParentId ();
+ public Category getParentCategory ();
/**
- * Parent category id
- * @param parent the parent to set
+ * Parent category
+ * <p>
+ * @param parentCategory the parent category to set
*/
- public void setParentId (final Long parent);
+ public void setParentCategory (final Category parentCategory);
/**
* Title of category
+ * <p>
* @return the title
*/
- public String getTitle ();
+ public String getCategoryTitle ();
/**
* Title of category
+ * <p>
* @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);
}