From: Roland Häder Date: Sat, 10 Jun 2017 21:23:48 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=28f890e13637ce431e3bc631616c79f2018a3fdc;p=pizzaservice-ejb.git Please cherry-pick: - really have to call super(), else anything there, like logger bean, will not be initialized Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jcontacts/contact/PizzaAdminContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/PizzaAdminContactSessionBean.java index 48aea0e..0890584 100644 --- a/src/java/org/mxchange/jcontacts/contact/PizzaAdminContactSessionBean.java +++ b/src/java/org/mxchange/jcontacts/contact/PizzaAdminContactSessionBean.java @@ -39,6 +39,8 @@ public class PizzaAdminContactSessionBean extends BasePizzaDatabaseBean implemen * Default constructor */ public PizzaAdminContactSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java index 5760493..9ec689d 100644 --- a/src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java +++ b/src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java @@ -43,6 +43,8 @@ public class PizzaContactSessionBean extends BasePizzaDatabaseBean implements Co * Default constructor */ public PizzaContactSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jcontacts/phone/PizzaAdminContactPhoneSessionBean.java b/src/java/org/mxchange/jcontacts/phone/PizzaAdminContactPhoneSessionBean.java index f22cb0c..88fda4b 100644 --- a/src/java/org/mxchange/jcontacts/phone/PizzaAdminContactPhoneSessionBean.java +++ b/src/java/org/mxchange/jcontacts/phone/PizzaAdminContactPhoneSessionBean.java @@ -50,6 +50,14 @@ public class PizzaAdminContactPhoneSessionBean extends BasePizzaDatabaseBean imp @EJB private ContactSessionBeanRemote contactBean; + /** + * Default constructor + */ + public PizzaAdminContactPhoneSessionBean () { + // 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/PizzaCountrySingletonBean.java b/src/java/org/mxchange/jcountry/data/PizzaCountrySingletonBean.java index 084e4e7..bb8133f 100644 --- a/src/java/org/mxchange/jcountry/data/PizzaCountrySingletonBean.java +++ b/src/java/org/mxchange/jcountry/data/PizzaCountrySingletonBean.java @@ -40,6 +40,14 @@ public class PizzaCountrySingletonBean extends BasePizzaDatabaseBean implements */ private static final long serialVersionUID = 15_846_983_298_691_207L; + /** + * Default constructor + */ + public PizzaCountrySingletonBean () { + // Call super constructor + super(); + } + @Override public Country addCountry (final Country country) throws CountryAlreadyAddedException { // Trace message diff --git a/src/java/org/mxchange/jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java b/src/java/org/mxchange/jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java index f26e67f..ff40ba0 100644 --- a/src/java/org/mxchange/jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/jmailee/model/delivery/PizzaEmailDeliveryMessageBean.java @@ -56,6 +56,9 @@ public class PizzaEmailDeliveryMessageBean implements MessageListener { * Default constructor */ public PizzaEmailDeliveryMessageBean () { + // Call super constructor + super(); + try { // Get initial context Context context = new InitialContext(); diff --git a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaAdminMobileProviderSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaAdminMobileProviderSessionBean.java index 07cdce0..1db9ace 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaAdminMobileProviderSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaAdminMobileProviderSessionBean.java @@ -35,6 +35,14 @@ public class PizzaAdminMobileProviderSessionBean extends BasePizzaDatabaseBean i */ private static final long serialVersionUID = 15_846_983_298_691_207L; + /** + * Default constructor + */ + public PizzaAdminMobileProviderSessionBean () { + // 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/PizzaMobileProviderSingletonBean.java b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaMobileProviderSingletonBean.java index 47d916f..f63f9a6 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaMobileProviderSingletonBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaMobileProviderSingletonBean.java @@ -37,6 +37,14 @@ public class PizzaMobileProviderSingletonBean extends BasePizzaDatabaseBean impl */ private static final long serialVersionUID = 15_846_983_298_691_207L; + /** + * Default constructor + */ + public PizzaMobileProviderSingletonBean () { + // Call super constructor + super(); + } + @Override @SuppressWarnings ("unchecked") public List allMobileProvider () { diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java index 3d5968b..555dfbe 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java @@ -37,6 +37,14 @@ public class PizzaAdminPhoneSessionBean extends BasePizzaDatabaseBean implements */ private static final long serialVersionUID = 18_597_165_817_401_853L; + /** + * Default constructor + */ + public PizzaAdminPhoneSessionBean () { + // Call super constructor + super(); + } + @Override public void deleteFaxData (final DialableFaxNumber faxNumber) { // Trace message diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaPhoneSessionBean.java index 8837bb4..e24d382 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaPhoneSessionBean.java @@ -47,6 +47,8 @@ public class PizzaPhoneSessionBean extends BasePizzaDatabaseBean implements Phon * Default constructor */ public PizzaPhoneSessionBean () { + // Call super constructor + super(); } @SuppressWarnings ("unchecked") diff --git a/src/java/org/mxchange/jusercore/model/email_address/PizzaUserEmailChangeSessionBean.java b/src/java/org/mxchange/jusercore/model/email_address/PizzaUserEmailChangeSessionBean.java index f63bb74..5e7024e 100644 --- a/src/java/org/mxchange/jusercore/model/email_address/PizzaUserEmailChangeSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/email_address/PizzaUserEmailChangeSessionBean.java @@ -54,6 +54,8 @@ public class PizzaUserEmailChangeSessionBean extends BasePizzaDatabaseBean imple * Default constructor */ public PizzaUserEmailChangeSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jusercore/model/login/PizzaUserLoginSessionBean.java b/src/java/org/mxchange/jusercore/model/login/PizzaUserLoginSessionBean.java index f35ddbd..84b2bcb 100644 --- a/src/java/org/mxchange/jusercore/model/login/PizzaUserLoginSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/login/PizzaUserLoginSessionBean.java @@ -56,6 +56,14 @@ public class PizzaUserLoginSessionBean extends BasePizzaDatabaseBean implements @EJB private UserSessionBeanRemote userBean; + /** + * Default constructor + */ + public PizzaUserLoginSessionBean () { + // 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/PizzaUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java index 574aebe..f0a1d7c 100644 --- a/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java @@ -60,6 +60,14 @@ public class PizzaUserRegistrationSessionBean extends BasePizzaDatabaseBean impl @EJB private UserSessionBeanRemote userBean; + /** + * Default constructor + */ + public PizzaUserRegistrationSessionBean () { + // Call super constructor + super(); + } + @Override public String generateConfirmationKey (final User user) { // Trace message diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java index dd8468b..dc7875f 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java @@ -64,6 +64,8 @@ public class PizzaAdminUserSessionBean extends BasePizzaDatabaseBean implements * Default constructor */ public PizzaAdminUserSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java index ff095e8..8a859ad 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java @@ -66,6 +66,8 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS * Default constructor */ public PizzaUserSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/activity/PizzaUserActivityLogMessageBean.java b/src/java/org/mxchange/jusercore/model/user/activity/PizzaUserActivityLogMessageBean.java index 8ab5515..e86b944 100644 --- a/src/java/org/mxchange/jusercore/model/user/activity/PizzaUserActivityLogMessageBean.java +++ b/src/java/org/mxchange/jusercore/model/user/activity/PizzaUserActivityLogMessageBean.java @@ -57,6 +57,8 @@ public class PizzaUserActivityLogMessageBean extends BasePizzaDatabaseBean imple * Default constructor */ public PizzaUserActivityLogMessageBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/password_history/PizzaUserPasswordHistorySessionBean.java b/src/java/org/mxchange/jusercore/model/user/password_history/PizzaUserPasswordHistorySessionBean.java index 7070633..1a71faf 100644 --- a/src/java/org/mxchange/jusercore/model/user/password_history/PizzaUserPasswordHistorySessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/password_history/PizzaUserPasswordHistorySessionBean.java @@ -40,6 +40,8 @@ public class PizzaUserPasswordHistorySessionBean extends BasePizzaDatabaseBean i * Default constructor */ public PizzaUserPasswordHistorySessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java b/src/java/org/mxchange/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java index e800b8c..2490ef6 100644 --- a/src/java/org/mxchange/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java @@ -71,6 +71,9 @@ public class PizzaEmailDeliveryMessageBean extends BasePizzaDatabaseBean impleme * Default constructor */ public PizzaEmailDeliveryMessageBean () { + // Call super constructor + super(); + // Init mailer instance this.mailer = new PizzaMailer(); } diff --git a/src/java/org/mxchange/pizzaapplication/model/basket/BasketSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/basket/BasketSessionBean.java index 8fda8e9..8fc9dc7 100644 --- a/src/java/org/mxchange/pizzaapplication/model/basket/BasketSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/basket/BasketSessionBean.java @@ -48,6 +48,8 @@ public class BasketSessionBean extends BaseDatabaseBean implements BasketSession * Default constructor */ public BasketSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/pizzaapplication/model/category/AdminCategorySessionBean.java b/src/java/org/mxchange/pizzaapplication/model/category/AdminCategorySessionBean.java index 60a16a0..7032914 100644 --- a/src/java/org/mxchange/pizzaapplication/model/category/AdminCategorySessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/category/AdminCategorySessionBean.java @@ -41,6 +41,14 @@ public class AdminCategorySessionBean extends BaseDatabaseBean implements AdminC */ private static final long serialVersionUID = 26_143_895_789_581L; + /** + * Default constructor + */ + public AdminCategorySessionBean () { + // Call super constructor + super(); + } + @Override public Category doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException { // Trace message diff --git a/src/java/org/mxchange/pizzaapplication/model/category/CategorySessionBean.java b/src/java/org/mxchange/pizzaapplication/model/category/CategorySessionBean.java index 24e742d..a970d79 100644 --- a/src/java/org/mxchange/pizzaapplication/model/category/CategorySessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/category/CategorySessionBean.java @@ -42,6 +42,8 @@ public class CategorySessionBean extends BaseDatabaseBean implements CategorySes * Default constructor */ public CategorySessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/pizzaapplication/model/checkout/CheckoutMessageBean.java b/src/java/org/mxchange/pizzaapplication/model/checkout/CheckoutMessageBean.java index 1dc6b6b..5bdc1b8 100644 --- a/src/java/org/mxchange/pizzaapplication/model/checkout/CheckoutMessageBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/checkout/CheckoutMessageBean.java @@ -29,6 +29,7 @@ import javax.jms.ObjectMessage; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; +import org.mxchange.jcoreee.bean.BaseBean; import org.mxchange.jcoreeelogger.beans.local.logger.Log; import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal; import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException; @@ -52,7 +53,12 @@ import org.mxchange.jshopcore.wrapper.WrapableCheckout; @ActivationConfigProperty (propertyName = "destinationLookup", propertyValue = "jms/shopCheckoutQueue") } ) -public class CheckoutMessageBean implements MessageListener { +public class CheckoutMessageBean extends BaseBean implements MessageListener { + + /** + * Serial number + */ + private static final long serialVersionUID = 1_869_867_265_401L; /** * Basket bean @@ -82,6 +88,9 @@ public class CheckoutMessageBean implements MessageListener { * Default constructor */ public CheckoutMessageBean () { + // Call super constructor + super(); + try { // Get initial context Context context = new InitialContext(); diff --git a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java index 560cb2c..964c9c1 100644 --- a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java @@ -56,6 +56,14 @@ public class PizzaAdminCustomerSessionBean extends BasePizzaDatabaseBean impleme @EJB private PizzaCustomerSessionBeanRemote customerBean; + /** + * Default constructor + */ + public PizzaAdminCustomerSessionBean () { + // Call super constructor + super(); + } + @Override public Customer addCustomer (final Customer customer) throws CustomerAlreadyRegisteredException, ContactAlreadyAddedException { // Trace message diff --git a/src/java/org/mxchange/pizzaapplication/model/customer/ShopCustomerSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/customer/ShopCustomerSessionBean.java index 0bde27b..b62c91c 100644 --- a/src/java/org/mxchange/pizzaapplication/model/customer/ShopCustomerSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/customer/ShopCustomerSessionBean.java @@ -43,6 +43,8 @@ public class ShopCustomerSessionBean extends BaseDatabaseBean implements Custome * Default constructor */ public ShopCustomerSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/pizzaapplication/model/product/AdminProductSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/product/AdminProductSessionBean.java index 772f472..6c14c62 100644 --- a/src/java/org/mxchange/pizzaapplication/model/product/AdminProductSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/product/AdminProductSessionBean.java @@ -47,6 +47,8 @@ public class AdminProductSessionBean extends BaseDatabaseBean implements AdminPr * Default constructor */ public AdminProductSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/pizzaapplication/model/product/ProductSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/product/ProductSessionBean.java index d40fa9d..ef1ce7f 100644 --- a/src/java/org/mxchange/pizzaapplication/model/product/ProductSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/product/ProductSessionBean.java @@ -50,6 +50,8 @@ public class ProductSessionBean extends BaseDatabaseBean implements ProductSessi * Default constructor */ public ProductSessionBean () { + // Call super constructor + super(); } @Override diff --git a/src/java/org/mxchange/pizzaapplication/model/receipt/PdfReceiptBean.java b/src/java/org/mxchange/pizzaapplication/model/receipt/PdfReceiptBean.java index d0f6421..cac8d6f 100644 --- a/src/java/org/mxchange/pizzaapplication/model/receipt/PdfReceiptBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/receipt/PdfReceiptBean.java @@ -43,6 +43,8 @@ public class PdfReceiptBean implements PdfReceiptBeanLocal { * Default constructor */ public PdfReceiptBean () { + // Call super constructor + super(); } /** diff --git a/src/java/org/mxchange/pizzaapplication/model/receipt/PdfReceiptSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/receipt/PdfReceiptSessionBean.java index 32e5603..2097dc8 100644 --- a/src/java/org/mxchange/pizzaapplication/model/receipt/PdfReceiptSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/receipt/PdfReceiptSessionBean.java @@ -63,6 +63,9 @@ public class PdfReceiptSessionBean extends BaseDatabaseBean implements ReceiptBe * Default constructor */ public PdfReceiptSessionBean () { + // Call super constructor + super(); + try { // Get initial context Context context = new InitialContext(); diff --git a/src/java/org/mxchange/pizzaapplication/model/receipt/ReceiptFactory.java b/src/java/org/mxchange/pizzaapplication/model/receipt/ReceiptFactory.java index 973d3c4..c05d8e1 100644 --- a/src/java/org/mxchange/pizzaapplication/model/receipt/ReceiptFactory.java +++ b/src/java/org/mxchange/pizzaapplication/model/receipt/ReceiptFactory.java @@ -52,4 +52,5 @@ public class ReceiptFactory { public PDFJob getJob (final InjectionPoint caller) { return this.job; } + } diff --git a/src/java/org/mxchange/pizzaapplication/model/resendlink/PizzaResendLinkSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/resendlink/PizzaResendLinkSessionBean.java index 40d77ae..bdb789e 100644 --- a/src/java/org/mxchange/pizzaapplication/model/resendlink/PizzaResendLinkSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/resendlink/PizzaResendLinkSessionBean.java @@ -60,6 +60,14 @@ public class PizzaResendLinkSessionBean extends BasePizzaDatabaseBean implements @EJB private UserSessionBeanRemote userBean; + /** + * Default constructor + */ + public PizzaResendLinkSessionBean () { + // Call super constructor + super(); + } + @Override public void resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusConfirmedException, UserStatusLockedException { // Log trace message