From 923eaf0c7d4e22c20d5d16ce2693561861d5a8cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 10 Jun 2017 23:23:48 +0200 Subject: [PATCH] Please cherry-pick: - really have to call super(), else anything there, like logger bean, will not be initialized - updated persistence unit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/conf/persistence.xml | 7 +++---- .../jcontacts/contact/JobsAdminContactSessionBean.java | 2 ++ .../jcontacts/contact/JobsContactSessionBean.java | 2 ++ .../jcontacts/phone/JobsAdminContactPhoneSessionBean.java | 8 ++++++++ .../mxchange/jcountry/data/JobsCountrySingletonBean.java | 8 ++++++++ .../jjobs/beans/resendlink/JobsResendLinkSessionBean.java | 8 ++++++++ .../model/addressbook/JobsAddressbookSessionBean.java | 8 ++++++++ .../model/delivery/JobsEmailDeliveryMessageBean.java | 3 +++ .../JobsAdminMobileProviderSessionBean.java | 8 ++++++++ .../mobileprovider/JobsMobileProviderSingletonBean.java | 8 ++++++++ .../phonenumbers/phone/JobsAdminPhoneSessionBean.java | 8 ++++++++ .../jphone/phonenumbers/phone/JobsPhoneSessionBean.java | 2 ++ .../email_address/JobsUserEmailChangeSessionBean.java | 2 ++ .../jusercore/model/login/JobsUserLoginSessionBean.java | 8 ++++++++ .../model/register/JobsUserRegistrationSessionBean.java | 8 ++++++++ .../jusercore/model/user/JobsAdminUserSessionBean.java | 2 ++ .../jusercore/model/user/JobsUserSessionBean.java | 2 ++ .../user/activity/JobsUserActivityLogMessageBean.java | 2 ++ .../JobsUserPasswordHistorySessionBean.java | 2 ++ 19 files changed, 94 insertions(+), 4 deletions(-) diff --git a/src/conf/persistence.xml b/src/conf/persistence.xml index de61b0f..673c680 100644 --- a/src/conf/persistence.xml +++ b/src/conf/persistence.xml @@ -2,6 +2,8 @@ jdbc/jjobs + org.mxchange.jaddressbook.model.addressbook.UserAddressbook + org.mxchange.jaddressbook.model.addressbook.entry.UserAddressbookEntry org.mxchange.jcontacts.contact.UserContact org.mxchange.jcontactsbusiness.CompanyContact org.mxchange.jcontactsbusiness.basicdata.CompanyBasicData @@ -13,17 +15,14 @@ org.mxchange.jcontactsbusiness.logo.CompanyLogo org.mxchange.jcontactsbusiness.opening_times.BusinessOpeningTimes org.mxchange.jcountry.data.CountryData - org.mxchange.jjobs.model.addressbook.UserAddressbook - org.mxchange.jjobs.model.addressbook.entry.UserAddressbookEntry - org.mxchange.jjobs.model.addressbook.shared.AddressbookShare org.mxchange.jphone.phonenumbers.fax.FaxNumber org.mxchange.jphone.phonenumbers.landline.LandLineNumber org.mxchange.jphone.phonenumbers.mobile.MobileNumber org.mxchange.jphone.phonenumbers.mobileprovider.CellphoneProvider org.mxchange.jusercore.model.email_address.EmailAddressChange org.mxchange.jusercore.model.user.LoginUser - org.mxchange.jusercore.model.user.password_history.UserPasswordHistory org.mxchange.jusercore.model.user.activity.UserActivityLog + org.mxchange.jusercore.model.user.password_history.UserPasswordHistory false diff --git a/src/java/org/mxchange/jcontacts/contact/JobsAdminContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/JobsAdminContactSessionBean.java index d128b6a..58b67ee 100644 --- a/src/java/org/mxchange/jcontacts/contact/JobsAdminContactSessionBean.java +++ b/src/java/org/mxchange/jcontacts/contact/JobsAdminContactSessionBean.java @@ -39,6 +39,8 @@ public class JobsAdminContactSessionBean extends BaseJobsDatabaseBean implements * Default constructor */ public JobsAdminContactSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java index f3ad3cd..88956b7 100644 --- a/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java +++ b/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java @@ -44,6 +44,8 @@ public class JobsContactSessionBean extends BaseJobsDatabaseBean implements Cont * Default constructor */ public JobsContactSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jcontacts/phone/JobsAdminContactPhoneSessionBean.java b/src/java/org/mxchange/jcontacts/phone/JobsAdminContactPhoneSessionBean.java index 820f549..9b326bd 100644 --- a/src/java/org/mxchange/jcontacts/phone/JobsAdminContactPhoneSessionBean.java +++ b/src/java/org/mxchange/jcontacts/phone/JobsAdminContactPhoneSessionBean.java @@ -50,6 +50,14 @@ public class JobsAdminContactPhoneSessionBean extends BaseJobsDatabaseBean imple @EJB private ContactSessionBeanRemote contactBean; + /** + * Default constructor + */ + public JobsAdminContactPhoneSessionBean () { + // Call super constructor + super(); + } + @Override public Contact linkExistingFaxNumberWithContact (final Contact contact, final DialableFaxNumber faxNumber) throws PhoneNumberAlreadyLinkedException { // Trace message diff --git a/src/java/org/mxchange/jcountry/data/JobsCountrySingletonBean.java b/src/java/org/mxchange/jcountry/data/JobsCountrySingletonBean.java index 3827584..6ad9449 100644 --- a/src/java/org/mxchange/jcountry/data/JobsCountrySingletonBean.java +++ b/src/java/org/mxchange/jcountry/data/JobsCountrySingletonBean.java @@ -40,6 +40,14 @@ public class JobsCountrySingletonBean extends BaseJobsDatabaseBean implements Co */ private static final long serialVersionUID = 15_846_983_298_691_207L; + /** + * Default constructor + */ + public JobsCountrySingletonBean () { + // Call super constructor + super(); + } + @Override public Country addCountry (final Country country) throws CountryAlreadyAddedException { // Trace message diff --git a/src/java/org/mxchange/jjobs/beans/resendlink/JobsResendLinkSessionBean.java b/src/java/org/mxchange/jjobs/beans/resendlink/JobsResendLinkSessionBean.java index e099064..62e2216 100644 --- a/src/java/org/mxchange/jjobs/beans/resendlink/JobsResendLinkSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/resendlink/JobsResendLinkSessionBean.java @@ -60,6 +60,14 @@ public class JobsResendLinkSessionBean extends BaseJobsDatabaseBean implements R @EJB private UserSessionBeanRemote userBean; + /** + * Default constructor + */ + public JobsResendLinkSessionBean () { + // Call super constructor + super(); + } + @Override public void resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusConfirmedException, UserStatusLockedException { // Log trace message diff --git a/src/java/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBean.java b/src/java/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBean.java index bc8fd43..1824cfb 100644 --- a/src/java/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBean.java +++ b/src/java/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBean.java @@ -44,6 +44,14 @@ public class JobsAddressbookSessionBean extends BaseJobsDatabaseBean implements */ private static final long serialVersionUID = 129_857_871_287_691L; + /** + * Default constructor + */ + public JobsAddressbookSessionBean () { + // Call super constructor + super(); + } + @Override @SuppressWarnings ("unchecked") public List allEntries (final Addressbook addressbook) { diff --git a/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java b/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java index 898d6c6..eb1a3fd 100644 --- a/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java @@ -66,6 +66,9 @@ public class JobsEmailDeliveryMessageBean extends BaseJobsDatabaseBean implement * Default constructor */ public JobsEmailDeliveryMessageBean () { + // Call super constructor + super(); + // Init mailer instance this.mailer = new JobsMailer(); } diff --git a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsAdminMobileProviderSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsAdminMobileProviderSessionBean.java index b389911..7df3933 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsAdminMobileProviderSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsAdminMobileProviderSessionBean.java @@ -35,6 +35,14 @@ public class JobsAdminMobileProviderSessionBean extends BaseJobsDatabaseBean imp */ private static final long serialVersionUID = 15_846_983_298_691_207L; + /** + * Default constructor + */ + public JobsAdminMobileProviderSessionBean () { + // Call super constructor + super(); + } + @Override public MobileProvider addMobileProvider (final MobileProvider mobileProvider) throws MobileProviderAlreadyAddedException { // Log trace message diff --git a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsMobileProviderSingletonBean.java b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsMobileProviderSingletonBean.java index e90f5dc..6697465 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsMobileProviderSingletonBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsMobileProviderSingletonBean.java @@ -37,6 +37,14 @@ public class JobsMobileProviderSingletonBean extends BaseJobsDatabaseBean implem */ private static final long serialVersionUID = 15_846_983_298_691_207L; + /** + * Default constructor + */ + public JobsMobileProviderSingletonBean () { + // Call super constructor + super(); + } + @Override @SuppressWarnings ("unchecked") public List allMobileProvider () { diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/JobsAdminPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/JobsAdminPhoneSessionBean.java index 40962a3..1b84eb8 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/phone/JobsAdminPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/phone/JobsAdminPhoneSessionBean.java @@ -37,6 +37,14 @@ public class JobsAdminPhoneSessionBean extends BaseJobsDatabaseBean implements A */ private static final long serialVersionUID = 18_597_165_817_401_853L; + /** + * Default constructor + */ + public JobsAdminPhoneSessionBean () { + // Call super constructor + super(); + } + @Override public void deleteFaxData (final DialableFaxNumber faxNumber) { // Trace message diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/JobsPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/JobsPhoneSessionBean.java index 5f1794b..9f50723 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/phone/JobsPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/phone/JobsPhoneSessionBean.java @@ -47,6 +47,8 @@ public class JobsPhoneSessionBean extends BaseJobsDatabaseBean implements PhoneS * Default constructor */ public JobsPhoneSessionBean () { + // Call super constructor + super(); } @SuppressWarnings ("unchecked") diff --git a/src/java/org/mxchange/jusercore/model/email_address/JobsUserEmailChangeSessionBean.java b/src/java/org/mxchange/jusercore/model/email_address/JobsUserEmailChangeSessionBean.java index 1be77bf..a5324ff 100644 --- a/src/java/org/mxchange/jusercore/model/email_address/JobsUserEmailChangeSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/email_address/JobsUserEmailChangeSessionBean.java @@ -54,6 +54,8 @@ public class JobsUserEmailChangeSessionBean extends BaseJobsDatabaseBean impleme * Default constructor */ public JobsUserEmailChangeSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jusercore/model/login/JobsUserLoginSessionBean.java b/src/java/org/mxchange/jusercore/model/login/JobsUserLoginSessionBean.java index 2bd8bff..be35b3c 100644 --- a/src/java/org/mxchange/jusercore/model/login/JobsUserLoginSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/login/JobsUserLoginSessionBean.java @@ -56,6 +56,14 @@ public class JobsUserLoginSessionBean extends BaseJobsDatabaseBean implements Us @EJB private UserSessionBeanRemote userBean; + /** + * Default constructor + */ + public JobsUserLoginSessionBean () { + // Call super constructor + super(); + } + @Override public User validateUserAccountStatus (final LoginContainer container) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException, UserPasswordMismatchException { // Trace message diff --git a/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java index 411b405..5c92f4d 100644 --- a/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/JobsUserRegistrationSessionBean.java @@ -60,6 +60,14 @@ public class JobsUserRegistrationSessionBean extends BaseJobsDatabaseBean implem @EJB private UserSessionBeanRemote userBean; + /** + * Default constructor + */ + public JobsUserRegistrationSessionBean () { + // Call super constructor + super(); + } + @Override public String generateConfirmationKey (final User user) { // Trace message diff --git a/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java index 55be677..7b5c7a1 100644 --- a/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java @@ -64,6 +64,8 @@ public class JobsAdminUserSessionBean extends BaseJobsDatabaseBean implements Ad * Default constructor */ public JobsAdminUserSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java index dc9f1ae..dd68947 100644 --- a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java @@ -66,6 +66,8 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes * Default constructor */ public JobsUserSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/activity/JobsUserActivityLogMessageBean.java b/src/java/org/mxchange/jusercore/model/user/activity/JobsUserActivityLogMessageBean.java index a027773..f2a6610 100644 --- a/src/java/org/mxchange/jusercore/model/user/activity/JobsUserActivityLogMessageBean.java +++ b/src/java/org/mxchange/jusercore/model/user/activity/JobsUserActivityLogMessageBean.java @@ -57,6 +57,8 @@ public class JobsUserActivityLogMessageBean extends BaseJobsDatabaseBean impleme * Default constructor */ public JobsUserActivityLogMessageBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/password_history/JobsUserPasswordHistorySessionBean.java b/src/java/org/mxchange/jusercore/model/user/password_history/JobsUserPasswordHistorySessionBean.java index 53bdeca..59a1b26 100644 --- a/src/java/org/mxchange/jusercore/model/user/password_history/JobsUserPasswordHistorySessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/password_history/JobsUserPasswordHistorySessionBean.java @@ -40,6 +40,8 @@ public class JobsUserPasswordHistorySessionBean extends BaseJobsDatabaseBean imp * Default constructor */ public JobsUserPasswordHistorySessionBean () { + // Call super constructor + super(); } @Override -- 2.39.5