+libs.commons-lang3.classpath=\
+ ${base}/commons-lang3/commons-lang3-3.5.jar
+libs.commons-lang3.displayName=Commons Lang3 3.5
+libs.commons-lang3.javadoc=\
+ https://commons.apache.org/proper/commons-lang/javadocs/api-release/
libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.CopyLibs.displayName=CopyLibs Task
${file.reference.jphone-core.jar}:\
${file.reference.juser-core.jar}:\
${file.reference.jcoreee.jar}:\
+ ${libs.commons-lang3.classpath}:\
${libs.jpa20-persistence.classpath}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
+import org.apache.commons.lang3.StringUtils;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
import org.mxchange.jcontactsbusiness.model.employee.BusinessEmployee;
import org.mxchange.jcontactsbusiness.model.employee.Employable;
import org.mxchange.jcontactsbusiness.model.logo.BusinessLogo;
import org.mxchange.jcontactsbusiness.model.logo.Logo;
import org.mxchange.jcoreee.utils.Comparables;
-import org.mxchange.jcoreee.utils.StringUtils;
import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.model.phonenumbers.fax.FaxNumber;
import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber;
// First compare company name
this.getCompanyName().compareToIgnoreCase(basicData.getCompanyName()),
// ... next tax number
- StringUtils.compareToIgnoreCase(this.getCompanyTaxNumber(), basicData.getCompanyTaxNumber()),
+ StringUtils.compareIgnoreCase(this.getCompanyTaxNumber(), basicData.getCompanyTaxNumber()),
// ... and email address
- StringUtils.compareToIgnoreCase(this.getCompanyEmailAddress(), basicData.getCompanyEmailAddress()),
+ StringUtils.compareIgnoreCase(this.getCompanyEmailAddress(), basicData.getCompanyEmailAddress()),
// ... head quarter data
Headquarters.compare(this.getCompanyHeadquarterData(), basicData.getCompanyHeadquarterData())
};
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
+import org.apache.commons.lang3.StringUtils;
import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.model.employee.BusinessEmployee;
import org.mxchange.jcontactsbusiness.model.opening_time.BusinessOpeningTime;
import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
import org.mxchange.jcoreee.utils.Comparables;
-import org.mxchange.jcoreee.utils.NumberUtils;
-import org.mxchange.jcoreee.utils.StringUtils;
+import org.mxchange.jcoreee.utils.CoreNumberUtils;
import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jcountry.model.data.CountryData;
import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
/**
* Opening times for this branch office
*/
- @JoinTable (name = "branch_opening_times", joinColumns = @JoinColumn(name = "branch_opening_id", referencedColumnName = "branch_id"), inverseJoinColumns = @JoinColumn(name = "opening_branch_id", referencedColumnName = "opening_times_id"))
+ @JoinTable (name = "branch_opening_times", joinColumns =
+ @JoinColumn (name = "branch_opening_id", referencedColumnName = "branch_id"), inverseJoinColumns =
+ @JoinColumn (name = "opening_branch_id", referencedColumnName = "opening_times_id"))
@ManyToMany (targetEntity = BusinessOpeningTime.class, cascade = CascadeType.ALL)
private List<OpeningTime> branchOpeningTimes;
// First compare basic data
this.getBranchCompany().compareTo(branchOffice.getBranchCompany()),
// ... branch office number
- NumberUtils.compare(this.getBranchNumber(), branchOffice.getBranchNumber()),
+ CoreNumberUtils.compare(this.getBranchNumber(), branchOffice.getBranchNumber()),
// ... contact person
Employees.compare(this.getBranchContactEmployee(), branchOffice.getBranchContactEmployee()),
// ... then country
// ... and house number
this.getBranchHouseNumber().compareTo(branchOffice.getBranchHouseNumber()),
// ... and house number
- NumberUtils.compare(this.getBranchLastHouseNumber(), branchOffice.getBranchLastHouseNumber()),
+ CoreNumberUtils.compare(this.getBranchLastHouseNumber(), branchOffice.getBranchLastHouseNumber()),
// ... and extension
- StringUtils.compareToIgnoreCase(this.getBranchHouseNumberExtension(), branchOffice.getBranchHouseNumberExtension()),
+ StringUtils.compareIgnoreCase(this.getBranchHouseNumberExtension(), branchOffice.getBranchHouseNumberExtension()),
// ... store ...
- NumberUtils.compare(this.getBranchStore(), branchOffice.getBranchStore()),
+ CoreNumberUtils.compare(this.getBranchStore(), branchOffice.getBranchStore()),
// ... suite number ...
- NumberUtils.compare(this.getBranchSuiteNumber(), branchOffice.getBranchSuiteNumber())
+ CoreNumberUtils.compare(this.getBranchSuiteNumber(), branchOffice.getBranchSuiteNumber())
};
// Check all values
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
+import org.apache.commons.lang3.StringUtils;
import org.mxchange.jcontacts.model.contact.Contact;
import org.mxchange.jcontacts.model.contact.Contacts;
import org.mxchange.jcontacts.model.contact.UserContact;
import org.mxchange.jcontactsbusiness.model.jobposition.JobPosition;
import org.mxchange.jcontactsbusiness.model.jobposition.JobPositions;
import org.mxchange.jcoreee.utils.Comparables;
-import org.mxchange.jcoreee.utils.StringUtils;
import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber;
import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumber;
import org.mxchange.jusercore.model.user.LoginUser;
// ... job position
JobPositions.compare(this.getEmployeeJobPosition(), employable.getEmployeeJobPosition()),
// ... employee's number
- StringUtils.compareToIgnoreCase(this.getEmployeeNumber(), employable.getEmployeeNumber()),
+ StringUtils.compareIgnoreCase(this.getEmployeeNumber(), employable.getEmployeeNumber()),
// ... employee's email address
- StringUtils.compareToIgnoreCase(this.getEmployeeEmailAddress(), employable.getEmployeeEmailAddress()),
+ StringUtils.compareIgnoreCase(this.getEmployeeEmailAddress(), employable.getEmployeeEmailAddress()),
// ... finally contact data
Contacts.compare(this.getEmployeePersonalData(), employable.getEmployeePersonalData())
};
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
+import org.apache.commons.lang3.StringUtils;
import org.mxchange.jcontactsbusiness.model.employee.BusinessEmployee;
import org.mxchange.jcontactsbusiness.model.employee.Employable;
import org.mxchange.jcontactsbusiness.model.opening_time.BusinessOpeningTime;
import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
import org.mxchange.jcoreee.utils.Comparables;
-import org.mxchange.jcoreee.utils.NumberUtils;
-import org.mxchange.jcoreee.utils.StringUtils;
+import org.mxchange.jcoreee.utils.CoreNumberUtils;
import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jcountry.model.data.CountryData;
import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
// ... next country
this.getHeadquarterCountry().compareTo(headquarter.getHeadquarterCountry()),
// ... then ZIP code
- NumberUtils.compare(this.getHeadquarterZipCode(), headquarter.getHeadquarterZipCode()),
+ CoreNumberUtils.compare(this.getHeadquarterZipCode(), headquarter.getHeadquarterZipCode()),
// ... and city
this.getHeadquarterCity().compareTo(headquarter.getHeadquarterCity()),
// ... street name
- StringUtils.compareToIgnoreCase(this.getHeadquarterStreet(), headquarter.getHeadquarterStreet()),
+ StringUtils.compareIgnoreCase(this.getHeadquarterStreet(), headquarter.getHeadquarterStreet()),
// ... house number
- NumberUtils.compare(this.getHeadquarterHouseNumber(), headquarter.getHeadquarterHouseNumber()),
+ CoreNumberUtils.compare(this.getHeadquarterHouseNumber(), headquarter.getHeadquarterHouseNumber()),
// ... last house number
- NumberUtils.compare(this.getHeadquarterLastHouseNumber(), headquarter.getHeadquarterLastHouseNumber()),
+ CoreNumberUtils.compare(this.getHeadquarterLastHouseNumber(), headquarter.getHeadquarterLastHouseNumber()),
// ... extension
- StringUtils.compareToIgnoreCase(this.getHeadquarterHouseNumberExtension(), headquarter.getHeadquarterHouseNumberExtension()),
+ StringUtils.compareIgnoreCase(this.getHeadquarterHouseNumberExtension(), headquarter.getHeadquarterHouseNumberExtension()),
// ... store number
- NumberUtils.compare(this.getHeadquarterStore(), headquarter.getHeadquarterStore()),
+ CoreNumberUtils.compare(this.getHeadquarterStore(), headquarter.getHeadquarterStore()),
// ... suite number
- NumberUtils.compare(this.getHeadquarterSuiteNumber(), headquarter.getHeadquarterSuiteNumber()),
+ CoreNumberUtils.compare(this.getHeadquarterSuiteNumber(), headquarter.getHeadquarterSuiteNumber()),
// ... last email address
- StringUtils.compareToIgnoreCase(this.getHeadquarterEmailAddress(), headquarter.getHeadquarterEmailAddress())
+ StringUtils.compareIgnoreCase(this.getHeadquarterEmailAddress(), headquarter.getHeadquarterEmailAddress())
};
// Check all values