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
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;
* 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;
/**
*/
@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;
/**
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;
}
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;
* 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;
/**
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;
* 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;
/**
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;
* 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;
/**
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;
* <p>
* @author Roland Haeder
*/
+@FacesValidator (value = "PhoneNumberValidator")
public class PhoneNumberValidator extends BaseLongValidator implements Validator {
/**