]> git.mxchange.org Git - pizzaservice-ejb.git/commit - src/java/org/mxchange/jcountry/data/PizzaCountrySingletonBean.java
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 9 Sep 2017 12:18:10 +0000 (14:18 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 9 Sep 2017 13:39:32 +0000 (15:39 +0200)
commit63146d310df05848bab07a0b0b43a892101c1a3a
tree2a81d630b13af5d275ab1f01ffbfdc485a8a0a5f
parente17687b3879a50303faae50be75163cddc7a782b
Please cherry-pick:
- introduced isSameCompanyNameAdded() which encapsulates checking for if a
  company name has already been used. This is, together with the thrown checked
  exception a last effort to prevent bad bad SqlException or any other
  "low-level" exception as they are more severage than this.
- thumb of a rule: always pre-validate if all conditions are met (return "okay")
  prior doing risky things where uncontrolled exceptions may be thrown.
- make company-owner (User), founder (Employee) and contact person (dito)
  managed before persisting the whole BasicData instance as this makes sure that
  no duplicates will end up in database

Signed-off-by: Roland Häder <roland@mxchange.org>
35 files changed:
src/java/org/mxchange/jcontacts/contact/PizzaAdminContactSessionBean.java [deleted file]
src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java [deleted file]
src/java/org/mxchange/jcontacts/model/contact/PizzaAdminContactSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcontacts/model/contact/PizzaContactSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcontacts/model/phone/PizzaAdminContactPhoneSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcontacts/phone/PizzaAdminContactPhoneSessionBean.java [deleted file]
src/java/org/mxchange/jcontactsbusiness/basicdata/PizzaAdminBusinessDataSessionBean.java [deleted file]
src/java/org/mxchange/jcontactsbusiness/basicdata/PizzaBusinessDataSessionBean.java [deleted file]
src/java/org/mxchange/jcontactsbusiness/branchoffice/PizzaAdminBranchOfficeSessionBean.java [deleted file]
src/java/org/mxchange/jcontactsbusiness/branchoffice/PizzaBranchOfficeSessionBean.java [deleted file]
src/java/org/mxchange/jcontactsbusiness/employee/PizzaAdminCompanyEmployeeSessionBean.java [deleted file]
src/java/org/mxchange/jcontactsbusiness/employee/PizzaCompanyEmployeeSessionBean.java [deleted file]
src/java/org/mxchange/jcontactsbusiness/model/basicdata/PizzaAdminBusinessDataSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcontactsbusiness/model/basicdata/PizzaBusinessDataSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcontactsbusiness/model/branchoffice/PizzaAdminBranchOfficeSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcontactsbusiness/model/branchoffice/PizzaBranchOfficeSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcontactsbusiness/model/employee/PizzaAdminCompanyEmployeeSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcontactsbusiness/model/employee/PizzaCompanyEmployeeSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jcountry/data/PizzaCountrySingletonBean.java [deleted file]
src/java/org/mxchange/jcountry/model/data/PizzaCountrySingletonBean.java [new file with mode: 0644]
src/java/org/mxchange/jphone/model/phonenumbers/mobileprovider/PizzaAdminMobileProviderSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jphone/model/phonenumbers/mobileprovider/PizzaMobileProviderSingletonBean.java [new file with mode: 0644]
src/java/org/mxchange/jphone/model/phonenumbers/phone/PizzaAdminPhoneSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jphone/model/phonenumbers/phone/PizzaPhoneSessionBean.java [new file with mode: 0644]
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaAdminMobileProviderSessionBean.java [deleted file]
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaMobileProviderSingletonBean.java [deleted file]
src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java [deleted file]
src/java/org/mxchange/jphone/phonenumbers/phone/PizzaPhoneSessionBean.java [deleted file]
src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/activity/PizzaUserActivityLogMessageBean.java
src/java/org/mxchange/jusercore/model/user/email_address/PizzaUserEmailChangeSessionBean.java
src/java/org/mxchange/juserlogincore/model/user/register/PizzaUserRegistrationSessionBean.java
src/java/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java
src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java