]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
sorted members a bit
authorRoland Häder <roland@mxchange.org>
Wed, 7 Jun 2017 22:09:30 +0000 (00:09 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 7 Jun 2017 22:09:30 +0000 (00:09 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/basicdata/CompanyBasicData.java

index c2f4c5ff54e3b8d49deb32f246d66763f33e6ec1..c578795ca2f274895b2965325a74640931023d49 100644 (file)
@@ -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