From: Roland Häder Date: Wed, 7 Jun 2017 22:09:30 +0000 (+0200) Subject: sorted members a bit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ce566fd549b189672ce9d57c09ef4dd2a7ba1ac4;p=jcontacts-business-core.git sorted members a bit Signed-off-by: Roland Häder --- 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