@Transient
private static final long serialVersionUID = 19_578_871_756_871L;
- /**
- * When this opening time was created
- */
- @Basic (optional = false)
- @Column (name = "opening_times_created", nullable = false, updatable = false)
- @Temporal (TemporalType.TIMESTAMP)
- private Date openingCreated;
-
/**
* Ending day of opening hours (if applyable)
*/
@Temporal (TemporalType.TIME)
private Date openingStartTime;
+ /**
+ * When this opening time was created
+ */
+ @Basic (optional = false)
+ @Column (name = "opening_times_entry_created", nullable = false, updatable = false)
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date openingTimeEntryCreated;
+
+ /**
+ * When this opening time was created
+ */
+ @Column (name = "opening_times_entry_updated", insertable = false)
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date openingTimeEntryUpdated;
+
/**
* Id number
*/
return true;
}
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Date getOpeningCreated () {
- return this.openingCreated;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setOpeningCreated (final Date openingCreated) {
- this.openingCreated = openingCreated;
- }
-
@Override
public DayOfTheWeek getOpeningEndDay () {
return this.openingEndDay;
this.openingStartTime = openingStartTime;
}
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getOpeningTimeEntryCreated () {
+ return this.openingTimeEntryCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setOpeningTimeEntryCreated (final Date openingTimeEntryCreated) {
+ this.openingTimeEntryCreated = openingTimeEntryCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getOpeningTimeEntryUpdated () {
+ return this.openingTimeEntryUpdated;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setOpeningTimeEntryUpdated (final Date openingTimeEntryUpdated) {
+ this.openingTimeEntryUpdated = openingTimeEntryUpdated;
+ }
+
@Override
public Long getOpeningTimeId () {
return this.openingTimeId;
* <p>
* @return Opening time created timestamp
*/
- Date getOpeningCreated ();
+ Date getOpeningTimeEntryCreated ();
/**
* Setter for opening time created timestamp
* <p>
- * @param openingCreated Opening time created timestamp
+ * @param openingTimeEntryCreated Opening time created timestamp
*/
- void setOpeningCreated (final Date openingCreated);
+ void setOpeningTimeEntryCreated (final Date openingTimeEntryCreated);
+
+ /**
+ * Getter for opening time updated timestamp
+ * <p>
+ * @return Opening time updated timestamp
+ */
+ Date getOpeningTimeEntryUpdated ();
+
+ /**
+ * Setter for opening time updated timestamp
+ * <p>
+ * @param openingTimeEntryUpdated Opening time updated timestamp
+ */
+ void setOpeningTimeEntryUpdated (final Date openingTimeEntryUpdated);
/**
* Getter for id number