From ce566fd549b189672ce9d57c09ef4dd2a7ba1ac4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 8 Jun 2017 00:09:30 +0200 Subject: [PATCH] sorted members a bit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../basicdata/CompanyBasicData.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/org/mxchange/jcontactsbusiness/basicdata/CompanyBasicData.java b/src/org/mxchange/jcontactsbusiness/basicdata/CompanyBasicData.java index c2f4c5f..c578795 100644 --- a/src/org/mxchange/jcontactsbusiness/basicdata/CompanyBasicData.java +++ b/src/org/mxchange/jcontactsbusiness/basicdata/CompanyBasicData.java @@ -65,13 +65,6 @@ public class CompanyBasicData implements BusinessBasicData { @Column (name = "company_entry_created", nullable = false, updatable = false) private Calendar basicCreated; - /** - * User owner instance - */ - @JoinColumn (name = "company_user_id", nullable = false, updatable = false) - @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false) - private User companyBasicUserOwner; - /** * Id number */ @@ -80,6 +73,13 @@ public class CompanyBasicData implements BusinessBasicData { @GeneratedValue (strategy = GenerationType.IDENTITY) private Long companyBasicId; + /** + * User owner instance + */ + @JoinColumn (name = "company_user_id", nullable = false, updatable = false) + @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false) + private User companyBasicUserOwner; + /** * Comments (any) */ @@ -178,23 +178,23 @@ public class CompanyBasicData implements BusinessBasicData { } @Override - public User getCompanyBasicUserOwner () { - return this.companyBasicUserOwner; + public Long getCompanyBasicId () { + return this.companyBasicId; } @Override - public void setCompanyBasicUserOwner (final User companyBasicUserOwner) { - this.companyBasicUserOwner = companyBasicUserOwner; + public void setCompanyBasicId (final Long companyBasicId) { + this.companyBasicId = companyBasicId; } @Override - public Long getCompanyBasicId () { - return this.companyBasicId; + public User getCompanyBasicUserOwner () { + return this.companyBasicUserOwner; } @Override - public void setCompanyBasicId (final Long companyBasicId) { - this.companyBasicId = companyBasicId; + public void setCompanyBasicUserOwner (final User companyBasicUserOwner) { + this.companyBasicUserOwner = companyBasicUserOwner; } @Override -- 2.39.5