*/
void setCategoryI18nKey (final String title);
+ /**
+ * Getter for updated timestamp
+ * <p>
+ * @return Updated timestamp
+ */
+ Date getCategoryUpdated ();
+
+ /**
+ * Setter for updated timestamp
+ * <p>
+ * @param categoryUpdated Updated timestamp
+ */
+ void setCategoryUpdated (final Date categoryUpdated);
+
@Override
boolean equals (final Object object);
@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
*/
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;