*/
@Entity (name = "company_contacts")
@Table (name = "company_contacts")
+@SuppressWarnings ("PersistenceUnitPresent")
public class CompanyContact implements BusinessContact {
/**
* Serial number
*/
+ @Transient
private static final long serialVersionUID = 470_375_172_748_691L;
/**
* Id number
*/
@Id
- @Column (name = "company_id", length = 20, nullable = false, updatable = false)
+ @Column (name = "company_id", nullable = false, updatable = false)
@GeneratedValue (strategy = GenerationType.IDENTITY)
private Long companyContactId;
}
@Override
+ @SuppressWarnings ("ReturnOfCollectionOrArrayField")
public List<BranchOffice> getBrancheOffices () {
return this.brancheOffices;
}
@Override
+ @SuppressWarnings ("AssignmentToCollectionOrArrayFieldFromParameter")
public void setBrancheOffices (final List<BranchOffice> brancheOffices) {
this.brancheOffices = brancheOffices;
}
}
@Override
+ @SuppressWarnings ("ReturnOfDateField")
public Calendar getContactCreated () {
return this.contactCreated;
}
@Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
public void setContactCreated (final Calendar contactCreated) {
this.contactCreated = contactCreated;
}