]> git.mxchange.org Git - jphone-core.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Sun, 6 Mar 2016 13:50:41 +0000 (14:50 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 6 Mar 2016 16:49:22 +0000 (17:49 +0100)
- added referencedColumnName
- updated jar(s)
- added FacesValidator annotation
- ordered attributes
- added API documentation

Signed-off-by: Roland Häder <roland@mxchange.org>
lib/jcoreee.jar
lib/jcountry-core.jar
lib/nblibraries.properties
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
src/org/mxchange/jphone/validators/PhoneNumberValidator.java

index 8fa7868d036fb8592e8acfcd35cc661720d5984d..f2ad1c85d97e64c5a60b7580b4a440554a198134 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index e31915f9ce83516b740ec7236e0ef32e13ebe3a9..8f2a52866c7ad118b28db9a470c105f6fc62f655 100644 (file)
Binary files a/lib/jcountry-core.jar and b/lib/jcountry-core.jar differ
index 6e518ff3347225e394c8769824d82a881bbac011..cadf17c0bcbf3f50f5b253b95cf43c080dd5c639 100644 (file)
@@ -5,10 +5,12 @@ libs.CopyLibs.prop-version=2.0
 libs.javaee-api-7.0.classpath=\
     ${base}/javaee-api-7.0/javaee-api-7.0.jar
 libs.javaee-api-7.0.displayName=Java EE 7 API Library
-libs.javaee-api-7.0.javadoc=
+libs.javaee-api-7.0.javadoc=\
+    https://docs.oracle.com/javaee/7/api/
 libs.javaee-api-7.0.prop-maven-dependencies=javax:javaee-api:7.0:jar
 libs.jpa20-persistence.classpath=\
     ${base}/jpa20-persistence/javax.persistence_2.1.0.v201304241213.jar
 libs.jpa20-persistence.displayName=Persistence (JPA 2.1)
-libs.jpa20-persistence.javadoc=
+libs.jpa20-persistence.javadoc=\
+    https://docs.oracle.com/javaee/7/api/
 libs.jpa20-persistence.prop-maven-dependencies=org.eclipse.persistence:javax.persistence:2.1.0:jar
index d792811da985946c4dea45685b995754509bba54..e4cbea41d3d83653dd4f0076ecf368ba44ceb96d 100644 (file)
@@ -22,7 +22,6 @@ import javax.persistence.Basic;
 import javax.persistence.CascadeType;
 import javax.persistence.Column;
 import javax.persistence.Entity;
-import javax.persistence.FetchType;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
@@ -53,7 +52,7 @@ public class CellphoneNumber implements DialableCellphoneNumber, Comparable<Dial
         * Connection to table "cellphone_provider" (for dial prefix and more data)
         */
        @JoinColumn (name = "cellphone_provider_id", nullable = false)
-       @OneToOne (targetEntity = CellphoneProvider.class, cascade = CascadeType.MERGE, optional = false, fetch = FetchType.EAGER)
+       @OneToOne (targetEntity = CellphoneProvider.class, cascade = CascadeType.MERGE, optional = false)
        private SmsProvider cellphoneProvider;
 
        /**
@@ -69,7 +68,7 @@ public class CellphoneNumber implements DialableCellphoneNumber, Comparable<Dial
         */
        @Id
        @GeneratedValue (strategy = GenerationType.IDENTITY)
-       @Column (name = "cellphone_id", length = 20, updatable = false, nullable = false)
+       @Column (name = "cellphone_id", length = 20, nullable = false, updatable = false)
        private Long phoneId;
 
        /**
@@ -80,14 +79,14 @@ public class CellphoneNumber implements DialableCellphoneNumber, Comparable<Dial
        private Long phoneNumber;
 
        /**
-        * Contructor with cellphone carrier and number
+        * Constructor with cellphone carrier and number
         * <p>
-        * @param cellphoneCarrier Cellphone carrier instance
-        * @param cellphoneNumber Cellphone number
+        * @param cellphoneProvider Cellphone carrier instance
+        * @param cellphoneNumber   Cellphone number
         * @param phoneEntryCreated When this entry has been created
         */
-       public CellphoneNumber (final SmsProvider cellphoneCarrier, final Long cellphoneNumber, final Calendar phoneEntryCreated) {
-               this.cellphoneProvider = cellphoneCarrier;
+       public CellphoneNumber (final SmsProvider cellphoneProvider, final Long cellphoneNumber, final Calendar phoneEntryCreated) {
+               this.cellphoneProvider = cellphoneProvider;
                this.phoneNumber = cellphoneNumber;
                this.phoneEntryCreated = phoneEntryCreated;
        }
index f4b87a7e175a6c0e9342fcf0c69a9e91ca3b0487..88196a5ecccfb4ff7b5359cb2305697f7f3dbedc 100644 (file)
@@ -22,7 +22,6 @@ import javax.persistence.Basic;
 import javax.persistence.CascadeType;
 import javax.persistence.Column;
 import javax.persistence.Entity;
-import javax.persistence.FetchType;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
@@ -59,7 +58,7 @@ public class FaxNumber implements DialableFaxNumber, Comparable<DialableFaxNumbe
         * Country instance ('s dial data)
         */
        @JoinColumn (name = "fax_country_id", nullable = false)
-       @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.MERGE, optional = false, fetch = FetchType.EAGER)
+       @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.MERGE, optional = false)
        private Country faxCountry;
 
        /**
index e7b05035e58bdbc034b54f300ed48c2f1c30383b..ac4f7e16f7d090d03e0e60a6851b4799ded136dc 100644 (file)
@@ -22,7 +22,6 @@ import javax.persistence.Basic;
 import javax.persistence.CascadeType;
 import javax.persistence.Column;
 import javax.persistence.Entity;
-import javax.persistence.FetchType;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
@@ -59,7 +58,7 @@ public class LandLineNumber implements DialableLandLineNumber, Comparable<Dialab
         * Connection to table "country_data"
         */
        @JoinColumn (name = "phone_country_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.MERGE, optional = false, fetch = FetchType.EAGER)
+       @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.MERGE, optional = false)
        private Country phoneCountry;
 
        /**
index d0f3e55b2bb7283389b3495911f0951f9671b026..1e1fac5d35ee07b8897e9fef61feae7a223f6da6 100644 (file)
@@ -22,7 +22,6 @@ import javax.persistence.Basic;
 import javax.persistence.CascadeType;
 import javax.persistence.Column;
 import javax.persistence.Entity;
-import javax.persistence.FetchType;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
@@ -57,7 +56,7 @@ public class CellphoneProvider implements SmsProvider, Comparable<SmsProvider> {
         * Country instance ('s dial data)
         */
        @JoinColumn (name = "provider_country_id", nullable = false)
-       @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.MERGE, optional = false, fetch = FetchType.EAGER)
+       @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.MERGE, optional = false)
        private Country providerCountry;
 
        /**
index edb2580f064d2641313944b26cc00e7c844cc7be..296e5b9f05ac72e1befbc4f16c04636ec241e10f 100644 (file)
@@ -18,6 +18,7 @@ package org.mxchange.jphone.validators;
 
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
+import javax.faces.validator.FacesValidator;
 import javax.faces.validator.Validator;
 import org.mxchange.jcoreee.validator.number.BaseLongValidator;
 
@@ -26,6 +27,7 @@ import org.mxchange.jcoreee.validator.number.BaseLongValidator;
  * <p>
  * @author Roland Haeder
  */
+@FacesValidator (value = "PhoneNumberValidator")
 public class PhoneNumberValidator extends BaseLongValidator implements Validator {
 
        /**