From c3f8c84a055cc91ad37ff8ad9cce83ac612398d8 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 16 Feb 2016 12:46:58 +0100 Subject: [PATCH] Don't implement lists in a POJO/POJI, better handle it outside of it --- .../jcontactsbusiness/BusinessContact.java | 14 -------------- .../jcontactsbusiness/CompanyContact.java | 18 ------------------ 2 files changed, 32 deletions(-) diff --git a/src/org/mxchange/jcontactsbusiness/BusinessContact.java b/src/org/mxchange/jcontactsbusiness/BusinessContact.java index a989730..a645254 100644 --- a/src/org/mxchange/jcontactsbusiness/BusinessContact.java +++ b/src/org/mxchange/jcontactsbusiness/BusinessContact.java @@ -102,20 +102,6 @@ public interface BusinessContact extends Serializable { */ void setCompanyFounder (final Employee companyFounder); - /** - * Getter for list of employees - *

- * @return List of employees - */ - List getEmployees (); - - /** - * Setter for list of employees - *

- * @param employees List of employees - */ - void setEmployees (final List employees); - /** * Getter for headquarters data *

diff --git a/src/org/mxchange/jcontactsbusiness/CompanyContact.java b/src/org/mxchange/jcontactsbusiness/CompanyContact.java index 965a93c..2319949 100644 --- a/src/org/mxchange/jcontactsbusiness/CompanyContact.java +++ b/src/org/mxchange/jcontactsbusiness/CompanyContact.java @@ -27,7 +27,6 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; -import javax.persistence.OneToMany; import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Temporal; @@ -107,13 +106,6 @@ public class CompanyContact implements BusinessContact, Comparable employees; - /** * Reference to headquarters data */ @@ -209,16 +201,6 @@ public class CompanyContact implements BusinessContact, Comparable getEmployees () { - return this.employees; - } - - @Override - public void setEmployees (final List employees) { - this.employees = employees; - } - @Override public HeadQuartersData getHeadQuartersData () { return this.headQuartersData; -- 2.39.5