]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
sorted members
authorRoland Haeder <roland@mxchange.org>
Tue, 16 Feb 2016 00:35:49 +0000 (01:35 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 16 Feb 2016 00:35:49 +0000 (01:35 +0100)
src/org/mxchange/jcontactsbusiness/CompanyContact.java

index 35f89668a80129854a5393c9707c15e82c4ed5b8..965a93c728e2868b9bc579e33a0c9904d9b5d5d1 100644 (file)
@@ -92,6 +92,21 @@ public class CompanyContact implements BusinessContact, Comparable<BusinessConta
        @OneToOne (targetEntity = CompanyEmployee.class, cascade = CascadeType.ALL)
        private Employee companyFounder;
 
+       /**
+        * Timestamp when this entry has been created
+        */
+       @Basic (optional = false)
+       @Temporal (TemporalType.TIMESTAMP)
+       @Column (name = "company_entry_created", nullable = false, updatable = false)
+       private Calendar contactCreated;
+
+       /**
+        * User owner instance
+        */
+       @JoinColumn (name = "company_user_id", nullable = false, updatable = false)
+       @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.MERGE, optional = false)
+       private User contactUserOwner;
+
        /**
         * Reference to employee list
         */
@@ -106,20 +121,23 @@ public class CompanyContact implements BusinessContact, Comparable<BusinessConta
        @OneToOne (targetEntity = CompanyHeadQuartersData.class, cascade = CascadeType.ALL, optional = false)
        private HeadQuartersData headQuartersData;
 
-       /**
-        * User owner instance
-        */
-       @JoinColumn (name = "company_user_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.MERGE, optional = false)
-       private User contactUserOwner;
+       @Override
+       public int compareTo (final BusinessContact businessContact) {
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+       }
 
-       /**
-        * Timestamp when this entry has been created
-        */
-       @Basic (optional = false)
-       @Temporal (TemporalType.TIMESTAMP)
-       @Column (name = "company_entry_created", nullable = false, updatable = false)
-       private Calendar contactCreated;
+       @Override
+       public boolean equals (final Object object) {
+               if (object == null) {
+                       return false;
+               } else if (getClass() != object.getClass()) {
+                       return false;
+               }
+
+               final BusinessContact other = (BusinessContact) object;
+
+               return Objects.equals(this.getBasicBusinessData(), other.getBasicBusinessData());
+       }
 
        @Override
        public BusinessBasicData getBasicBusinessData () {
@@ -211,24 +229,6 @@ public class CompanyContact implements BusinessContact, Comparable<BusinessConta
                this.headQuartersData = headQuartersData;
        }
 
-       @Override
-       public int compareTo (final BusinessContact businessContact) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
-       }
-
-       @Override
-       public boolean equals (final Object object) {
-               if (object == null) {
-                       return false;
-               } else if (getClass() != object.getClass()) {
-                       return false;
-               }
-
-               final BusinessContact other = (BusinessContact) object;
-
-               return Objects.equals(this.getBasicBusinessData(), other.getBasicBusinessData());
-       }
-
        @Override
        public int hashCode () {
                int hash = 3;