]> git.mxchange.org Git - jphone-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:24:32 +0000 (13:24 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 11:24:32 +0000 (13:24 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java
src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java
src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java
src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java

index a1730077f5ca8011d2ac601c2852713dcc1e983a..f092339e37b60aeae6a087e5299868241b378cc1 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.jphone.phonenumbers.smsprovider.CellphoneProvider;
 import org.mxchange.jphone.phonenumbers.smsprovider.SmsProvider;
@@ -57,6 +58,7 @@ public class CellphoneNumber implements DialableCellphoneNumber, Comparable<Dial
         */
        @JoinColumn (name = "cellphone_provider_id", nullable = false)
        @OneToOne (targetEntity = CellphoneProvider.class, cascade = CascadeType.ALL, optional = false)
+       @Transient
        private SmsProvider cellphoneProvider;
 
        /**
index b5cb1b6978479393e421e71ded3739e10a78ebbb..54b395c6644ca97aee2fa95de4b8704d51802b7b 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;
 
@@ -70,6 +71,7 @@ public class FaxNumber implements DialableFaxNumber, Comparable<DialableFaxNumbe
         */
        @JoinColumn (name = "fax_country_id", nullable = false)
        @OneToOne (targetEntity = CountryData.class, optional = false, cascade = CascadeType.ALL)
+       @Transient
        private Country faxCountry;
 
        /**
index 84ae8c3a8af1b53872fa7a9490e5db9c4f9bde96..0152bd18af81ce155cea501f8d44c9301db7e369 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;
 
@@ -70,6 +71,7 @@ public class LandLineNumber implements DialableLandLineNumber, Comparable<Dialab
         */
        @JoinColumn (name = "phone_country_id", nullable = false, updatable = false)
        @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false)
+       @Transient
        private Country phoneCountry;
 
        /**
index 6007684b5762eed6847d34616ff4fa47d1282ddc..409abad060f414dbf59ebd9dcb7af86ed73d8c46 100644 (file)
@@ -28,6 +28,7 @@ import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
+import javax.persistence.Transient;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jcountry.data.CountryData;
 
@@ -75,6 +76,7 @@ public class CellphoneProvider implements SmsProvider {
         */
        @JoinColumn (name = "provider_country_id", nullable = false)
        @OneToOne (targetEntity = CountryData.class, optional = false, cascade = CascadeType.ALL)
+       @Transient
        private Country country;
 
        @Override