]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
let's make sure that serial numbers of objects are never persisted (being ignored...
authorRoland Häder <roland@mxchange.org>
Wed, 8 Jun 2016 10:11:27 +0000 (12:11 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 8 Jun 2016 10:11:27 +0000 (12:11 +0200)
src/org/mxchange/jcontactsbusiness/CompanyContact.java
src/org/mxchange/jcontactsbusiness/basicdata/CompanyBasicData.java
src/org/mxchange/jcontactsbusiness/branch/CompanyBranchOffice.java
src/org/mxchange/jcontactsbusiness/department/CompanyDepartment.java
src/org/mxchange/jcontactsbusiness/employee/CompanyEmployee.java
src/org/mxchange/jcontactsbusiness/headquarters/CompanyHeadQuartersData.java
src/org/mxchange/jcontactsbusiness/jobposition/EmployeePosition.java
src/org/mxchange/jcontactsbusiness/logo/CompanyLogo.java
src/org/mxchange/jcontactsbusiness/opening_times/BusinessOpeningTimes.java

index b542c40060afbf809b58f574cc58726670e4c9c8..99012d4b45373e5b9f4e165e5c3380b53c1d34c1 100644 (file)
@@ -55,6 +55,7 @@ public class CompanyContact implements BusinessContact {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 470_375_172_748_691L;
 
        /**
index 38cced0fd2290a2d364f5e47eae32cdd37939add..4135815a5c1d760973de328fe0457c054b1540a9 100644 (file)
@@ -31,6 +31,7 @@ import javax.persistence.OneToOne;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
+import javax.persistence.Transient;
 import org.mxchange.jcontactsbusiness.logo.BusinessLogo;
 import org.mxchange.jcontactsbusiness.logo.CompanyLogo;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
@@ -53,6 +54,7 @@ public class CompanyBasicData implements BusinessBasicData {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 486_895_878_178_761L;
 
        /**
index 13845d83e81dad0114bdd28a8878408726bc264f..c3526671b3c442f14b64a3d1e3ce52444bc7a090 100644 (file)
@@ -30,6 +30,7 @@ import javax.persistence.OneToOne;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
+import javax.persistence.Transient;
 import org.mxchange.jcontactsbusiness.BusinessContact;
 import org.mxchange.jcontactsbusiness.CompanyContact;
 import org.mxchange.jcountry.data.Country;
@@ -54,6 +55,7 @@ public class CompanyBranchOffice implements BranchOffice {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 47_957_817_276_871_852L;
 
        /**
index cf335c939acf7e8f966973dfc1c15763ba6409a7..3fb5a8c7fcff658ff4790885809afe1b3a909534 100644 (file)
@@ -31,6 +31,7 @@ import javax.persistence.OneToOne;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
+import javax.persistence.Transient;
 import org.mxchange.jcontactsbusiness.BusinessContact;
 import org.mxchange.jcontactsbusiness.CompanyContact;
 import org.mxchange.jcontactsbusiness.branch.BranchOffice;
@@ -55,6 +56,7 @@ public class CompanyDepartment implements Department {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 94_835_918_958_717_660L;
 
        /**
index 2a7ed336186ff40c50a709879394f7306cd6e9d8..6168d3faaf6ef776fca2fcd587f6316b5ca46d4a 100644 (file)
@@ -30,6 +30,7 @@ import javax.persistence.OneToOne;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
+import javax.persistence.Transient;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.UserContact;
 import org.mxchange.jcontactsbusiness.BusinessContact;
@@ -60,6 +61,7 @@ public class CompanyEmployee implements Employee {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 48_959_819_859_812_076L;
 
        /**
index 5c5753ba1dbfec1f10948bb86fafce731576421a..70b61f01c26da60eb0d757e326658a7f991f94dd 100644 (file)
@@ -30,6 +30,7 @@ import javax.persistence.OneToOne;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
+import javax.persistence.Transient;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jcountry.data.CountryData;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
@@ -52,6 +53,7 @@ public class CompanyHeadQuartersData implements HeadQuartersData {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 385_752_948_781_761L;
 
        /**
index 71e6e87112f0001b306d3e26756e5abdac2b8bb5..1ef9618ed0efe80aa30beb9dcfb2cd9f0f3738f4 100644 (file)
@@ -28,6 +28,7 @@ import javax.persistence.Index;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
+import javax.persistence.Transient;
 
 /**
  * A POJO for job positions
@@ -51,6 +52,7 @@ public class EmployeePosition implements JobPosition {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 18_427_587_187_609L;
 
        /**
index 439f9f9b74f464d24709bb4908806c5e68126050..c11510944bfcd7e7006bdb481eaf5b32425c4e4f 100644 (file)
@@ -30,6 +30,7 @@ import javax.persistence.OneToOne;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
+import javax.persistence.Transient;
 import org.mxchange.jusercore.model.user.LoginUser;
 import org.mxchange.jusercore.model.user.User;
 
@@ -46,6 +47,7 @@ public class CompanyLogo implements BusinessLogo {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 475_871_875_718_751_285L;
 
        /**
index fe6b882042bb7448b78159eb2bb928a90fdef1ae..d297db2637a00614cb7f1658a9f45d4b7cab4c93 100644 (file)
@@ -30,6 +30,7 @@ import javax.persistence.Id;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
+import javax.persistence.Transient;
 
 /**
  * A POJO for business opening hours
@@ -44,6 +45,7 @@ public class BusinessOpeningTimes implements OpeningTimes {
        /**
         * Serial number
         */
+       @Transient
        private static final long serialVersionUID = 19_578_871_756_871L;
 
        /**