@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)
*/
- @Column (name = "opening_times_end_day")
+ @Basic (optional = false)
+ @Column (name = "opening_times_end_day", nullable = false)
@Enumerated (EnumType.STRING)
private DayOfTheWeek openingEndDay;
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;
*/
public interface OpeningTimes extends Serializable {
+ /**
+ * Getter for opening time created timestamp
+ * <p>
+ * @return Opening time created timestamp
+ */
+ Date getOpeningCreated ();
+
+ /**
+ * Setter for opening time created timestamp
+ * <p>
+ * @param openingCreated Opening time created timestamp
+ */
+ void setOpeningCreated (final Date openingCreated);
+
/**
* Getter for id number
* <p>