* <p>
* @return Timestamp when this entry has been created
*/
- Date getCompanyCreated ();
+ Date getCompanyEntryCreated ();
/**
* Setter for timestamp when this entry has been created
* <p>
* @param contactCreated Timestamp when this entry has been created
*/
- void setCompanyCreated (final Date contactCreated);
+ void setCompanyEntryCreated (final Date contactCreated);
+
+ /**
+ * Getter for timestamp when this entry has been updated
+ * <p>
+ * @return Timestamp when this entry has been updated
+ */
+ Date getCompanyEntryUpdated ();
+
+ /**
+ * Setter for timestamp when this entry has been updated
+ * <p>
+ * @param contactUpdated Timestamp when this entry has been updated
+ */
+ void setCompanyEntryUpdated (final Date contactUpdated);
/**
* Getter for comments
@Table (name = "company_basic_data")
@NamedQueries (
{
- @NamedQuery (name = "AllBusinessData", query = "SELECT b FROM company_basic_data AS b ORDER BY b.basicDataId"),
- }
+ @NamedQuery (name = "AllBusinessData", query = "SELECT b FROM company_basic_data AS b ORDER BY b.basicDataId"),}
)
@SuppressWarnings ("PersistenceUnitPresent")
public class BusinessBasicData implements BasicData {
@OneToOne (targetEntity = BusinessEmployee.class, cascade = CascadeType.REFRESH)
private Employable companyContactEmployee;
+ /**
+ * Company's main email address (example: info@company.com)
+ */
+ @Column (name = "company_email_address", length = 100)
+ private String companyEmailAddress;
+
/**
* Timestamp when this entry has been created
*/
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "company_entry_created", nullable = false, updatable = false)
- private Date companyCreated;
+ private Date companyEntryCreated;
/**
- * Company's main email address (example: info@company.com)
+ * Timestamp when this entry has been updated
*/
- @Column (name = "company_email_address", length = 100)
- private String companyEmailAddress;
+ @Temporal (TemporalType.TIMESTAMP)
+ @Column (name = "company_entry_updated", nullable = false, updatable = false)
+ private Date companyEntryUpdated;
/**
* Company's main fax numbers: +ccxxxxxxxxxx
this.companyContactEmployee = companyContactEmployee;
}
+ @Override
+ public String getCompanyEmailAddress () {
+ return this.companyEmailAddress;
+ }
+
+ @Override
+ public void setCompanyEmailAddress (final String companyEmailAddress) {
+ this.companyEmailAddress = companyEmailAddress;
+ }
+
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Date getCompanyCreated () {
- return this.companyCreated;
+ public Date getCompanyEntryCreated () {
+ return this.companyEntryCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCompanyCreated (final Date companyCreated) {
- this.companyCreated = companyCreated;
+ public void setCompanyEntryCreated (final Date companyEntryCreated) {
+ this.companyEntryCreated = companyEntryCreated;
}
@Override
- public String getCompanyEmailAddress () {
- return this.companyEmailAddress;
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getCompanyEntryUpdated () {
+ return this.companyEntryUpdated;
}
@Override
- public void setCompanyEmailAddress (final String companyEmailAddress) {
- this.companyEmailAddress = companyEmailAddress;
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setCompanyEntryUpdated (final Date companyEntryUpdated) {
+ this.companyEntryUpdated = companyEntryUpdated;
}
@Override