]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
do not persist this data as the user should not be able to enter such data (only...
authorRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 11:28:57 +0000 (13:28 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 11:28:57 +0000 (13:28 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcontacts-core.jar
lib/jphone-core.jar
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

index d1599646edb47bc737ba6e93b27c1d992ed0ed88..b977044176df140d0a842f3cd87d2d9913325158 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index 09d31d021f45e52b1f8bff4b13c78c01fc84571c..b8dca2dabf7a76459a987f1aa219cbae8f80a21f 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index 1210be12f4e0861a25dccc869ff3e76108c646ad..57cbf719ffe74a19ff6a4aea3461c132701b0c9d 100644 (file)
@@ -26,6 +26,7 @@ import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jcountry.data.CountryData;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
@@ -58,6 +59,7 @@ public class CompanyBranchOffice implements BranchOffice, Comparable<BranchOffic
         */
        @JoinColumn (name = "branch_country_id", nullable = false)
        @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false)
+       @Transient
        private Country branchCountry;
 
        /**
index 76b28d695b2ad7629cd09c82a7ae35b8c34063a5..8299bb45bd5baab1d777a35bf2f2ee5a4ff1bbfd 100644 (file)
@@ -27,6 +27,7 @@ import javax.persistence.JoinColumn;
 import javax.persistence.ManyToOne;
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 import org.mxchange.jcontactsbusiness.BusinessContact;
 import org.mxchange.jcontactsbusiness.CompanyContact;
 import org.mxchange.jcontactsbusiness.employee.CompanyEmployee;
@@ -51,6 +52,7 @@ public class CompanyDepartment implements Department, Comparable<Department> {
         */
        @JoinColumn (name = "department_company_id", nullable = false, updatable = false)
        @ManyToOne (targetEntity = CompanyContact.class, cascade = CascadeType.ALL, optional = false)
+       @Transient
        private BusinessContact departmentCompany;
 
        /**
@@ -66,6 +68,7 @@ public class CompanyDepartment implements Department, Comparable<Department> {
         */
        @JoinColumn (name = "department_lead_id", nullable = false)
        @OneToOne (targetEntity = CompanyEmployee.class, cascade = CascadeType.ALL)
+       @Transient
        private Employee departmentLead;
 
        /**
index 78f68d59a6c75b102c0b45196474437b76c8f446..a21dfdc29f8e81a549d06d507986ca9d4de87b5e 100644 (file)
@@ -25,6 +25,7 @@ import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.UserContact;
 import org.mxchange.jcontactsbusiness.branch.BranchOffice;
@@ -96,6 +97,7 @@ public class CompanyEmployee implements Employee, Comparable<Employee> {
         */
        @JoinColumn (name = "employee_personal_data_id", nullable = false, updatable = false)
        @OneToOne (targetEntity = UserContact.class, cascade = CascadeType.ALL, optional = false)
+       @Transient
        private Contact employeePersonalData;
 
        /**
@@ -109,6 +111,7 @@ public class CompanyEmployee implements Employee, Comparable<Employee> {
         */
        @JoinColumn (name = "employee_position_id")
        @OneToOne (targetEntity = EmployeePosition.class, cascade = CascadeType.ALL)
+       @Transient
        private JobPosition employeePosition;
 
        @Override
index 12776ee3f1b4c4c3666f3beeab56f3ed50bc03bf..3c7692397a936f858c2ebe176b1ec918e38d2c67 100644 (file)
@@ -26,6 +26,7 @@ import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jcountry.data.CountryData;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
@@ -59,6 +60,7 @@ public class CompanyHeadQuartersData implements HeadQuartersData, Comparable<Hea
         */
        @JoinColumn (name = "headquarters_country_id", nullable = false)
        @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false)
+       @Transient
        private Country headquartersCountry;
 
        /**