*/
public interface Category extends Comparable<Category>, Serializable {
- /**
- * Getter for created timestamp
- * <p>
- * @return Created timestamp
- */
- Date getCategoryCreated ();
-
- /**
- * Setter for created timestamp
- * <p>
- * @param categoryCreated Created timestamp
- */
- void setCategoryCreated (final Date categoryCreated);
-
/**
* Id number of category
* <p>
*/
void setCategoryI18nKey (final String title);
+ /**
+ * Getter for created timestamp
+ * <p>
+ * @return Created timestamp
+ */
+ Date getCategoryEntryCreated ();
+
+ /**
+ * Setter for created timestamp
+ * <p>
+ * @param categoryEntryCreated Created timestamp
+ */
+ void setCategoryEntryCreated (final Date categoryEntryCreated);
+
/**
* Getter for updated timestamp
* <p>
* @return Updated timestamp
*/
- Date getCategoryUpdated ();
+ Date getCategoryEntryUpdated ();
/**
* Setter for updated timestamp
* <p>
- * @param categoryUpdated Updated timestamp
+ * @param categoryEntryUpdated Updated timestamp
*/
- void setCategoryUpdated (final Date categoryUpdated);
+ void setCategoryEntryUpdated (final Date categoryEntryUpdated);
@Override
boolean equals (final Object object);
* When this entry has been created
*/
@Basic (optional = false)
- @Column (name = "category_created", updatable = false, nullable = false)
+ @Column (name = "category_entry_created", updatable = false, nullable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Date categoryCreated;
+ private Date categoryEntryCreated;
+
+ /**
+ * When this entry has been created
+ */
+ @Column (name = "category_entry_updated")
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date categoryEntryUpdated;
/**
* I18n key of category
@Column (name = "category_in_statistics", nullable = false)
private Boolean categoryShownInStatistics;
- /**
- * When this entry has been created
- */
- @Column (name = "category_updated")
- @Temporal (TemporalType.TIMESTAMP)
- private Date categoryUpdated;
-
/**
* Parent category
*/
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Date getCategoryCreated () {
- return this.categoryCreated;
+ public Date getCategoryEntryCreated () {
+ return this.categoryEntryCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setCategoryEntryCreated (final Date categoryEntryCreated) {
+ this.categoryEntryCreated = categoryEntryCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getCategoryEntryUpdated () {
+ return this.categoryEntryUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCategoryCreated (final Date categoryCreated) {
- this.categoryCreated = categoryCreated;
+ public void setCategoryEntryUpdated (final Date categoryEntryUpdated) {
+ this.categoryEntryUpdated = categoryEntryUpdated;
}
@Override
this.categoryShownInStatistics = categoryShownInStatistics;
}
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Date getCategoryUpdated () {
- return this.categoryUpdated;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCategoryUpdated (final Date categoryUpdated) {
- this.categoryUpdated = categoryUpdated;
- }
-
@Override
public Category getParentCategory () {
return this.parentCategory;