import javax.persistence.Query;
import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* An administrative contact EJB
import javax.persistence.NoResultException;
import javax.persistence.Query;
import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A contact EJB
* <p>
import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber;
import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A session EJB for administrative contact's phone number purposes
import org.mxchange.jcontactsbusiness.exceptions.basicdata.BasicDataAlreadyAddedException;
import org.mxchange.jcontactsbusiness.model.employee.Employable;
import org.mxchange.jusercore.model.user.User;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* An administrative stateless session bean for business data
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.Query;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless session bean for business data
import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jusercore.model.user.User;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
/**
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.Query;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless session bean for general branch office purposes
import javax.ejb.Stateless;
import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentAlreadyAddedException;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
-import org.mxchange.jfinancials.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaapplication.enterpriseBasePizzaEnterpriseBean;
import org.mxchange.jusercore.model.user.User;
import org.mxchange.jcontactsbusiness.model.employee.Employable;
import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
/**
* General department bean
*/
- @EJB (lookup = "java:global/jfinancials-ejb/department!org.mxchange.jcontactsbusiness.model.department.DepartmentSessionBeanRemote")
+ @EJB (lookup = "java:global/pizzaapplication-ejb/department!org.mxchange.jcontactsbusiness.model.department.DepartmentSessionBeanRemote")
private DepartmentSessionBeanRemote departmentBean;
/**
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.Query;
-import org.mxchange.jfinancials.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaapplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless session bean for general department purposes
package org.mxchange.jcontactsbusiness.model.employee;
import javax.ejb.Stateless;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless bean for administrative purposes for company employees.
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.Query;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless bean for general purposes for company employees.
/**
* Default constructor
*/
-<<<<<<< HEAD:src/java/org/mxchange/jcontactsbusiness/model/employee/PizzaCompanyEmployeeSessionBean.java
- public PizzaCompanyEmployeeSessionBean () {
-=======
- public FinancialsEmployeeSessionBean () {
->>>>>>> 0f4238c5... Please cherry-pick::src/java/org/mxchange/jcontactsbusiness/model/employee/FinancialsEmployeeSessionBean.java
+ public PizzaEmployeeSessionBean () {
super();
}
+++ /dev/null
-/*
- * Copyright (C) 2017 Roland Häder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.model.headquarters;
-
-import java.text.MessageFormat;
-import java.util.Date;
-import java.util.List;
-import javax.ejb.EJB;
-import javax.ejb.Stateless;
-import org.mxchange.jcontactsbusiness.exceptions.headquarters.HeadquartersAlreadyAddedException;
-import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
-import org.mxchange.jcountry.model.data.Country;
-import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
-import org.mxchange.jusercore.model.user.User;
-
-/**
- * A stateless session bean for administrative branch office purposes
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Stateless (name = "adminHeadquarter", description = "An administrative statless bean for handling branch office data (all)")
-public class FinancialsAdminHeadquartersSessionBean extends BaseFinancialsDatabaseBean implements AdminHeadquartersSessionBeanRemote {
-
- /**
- * Serial number
- */
- private static final long serialVersionUID = 58_467_386_571_701L;
-
- /**
- * General branch office bean
- */
- @EJB (lookup = "java:global/jfinancials-ejb/headquarters!org.mxchange.jcontactsbusiness.model.headquarters.HeadquarterSessionBeanRemote")
- private HeadquartersSessionBeanRemote headquartersBean;
-
- /**
- * Default constructor
- */
- public FinancialsAdminHeadquartersSessionBean () {
- // Call super constructor
- super();
- }
-
- @Override
- public Headquarter addHeadquarters (final Headquarter headquarter) throws HeadquartersAlreadyAddedException {
- // Trace message
- this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.addHeadquarters(): headquarter={1} - CALLED!", this.getClass().getSimpleName(), headquarter)); //NOI18N
-
- // Validate parameter
- if (null == headquarter) {
- // Throw NPE
- throw new NullPointerException("headquarter is null"); //NOI18N
- } else if (headquarter.getHeadquartersId() instanceof Long) {
- // Should not happen
- throw new IllegalArgumentException("headquarter.branchId should not be set."); //NOI18N
- } else if (this.isHeadquarterFound(headquarter)) {
- // Already added, abort here
- throw new HeadquartersAlreadyAddedException(headquarter);
- }
-
- // Add created timestamp
- headquarter.setHeadquartersCreated(new Date());
-
- // Is user instance set?
- if (headquarter.getHeadquartersUserOwner() instanceof User) {
- // Get managed instance back
- final User managedUser = this.createManaged(headquarter.getHeadquartersUserOwner());
-
- // Set it back in branch office
- headquarter.setHeadquartersUserOwner(managedUser);
- }
-
- // Is user instance set?
- if (headquarter.getHeadquartersCountry() instanceof Country) {
- // Get managed instance back
- final Country managedCountry = this.createManaged(headquarter.getHeadquartersCountry());
-
- // Set it back in branch office
- headquarter.setHeadquartersCountry(managedCountry);
- }
-
- // Set "created" timestamp on any number assigned
- this.setAllPhoneEntriesCreated(headquarter);
-
- // Get opening times
- final List<OpeningTime> openingTimes = headquarter.getHeadquartersOpeningTimes();
-
- // Debugging:
- this.getLoggerBeanLocal().logDebug(MessageFormat.format("{0}.addHeadquarters(): headquarter.headquarterOpeningTimes={1}", this.getClass().getSimpleName(), openingTimes));
-
- // Is opening times set and not empty?
- if ((openingTimes instanceof List) && (!openingTimes.isEmpty())) {
- // Add created timestamp for all times
- this.setAllOpeningTimesCreated(openingTimes);
- } else {
- // Set all to null
- headquarter.setHeadquartersOpeningTimes(null);
- }
-
- // Persist it
- this.getEntityManager().persist(headquarter);
-
- // Trace message
- this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.addHeadquarters(): headquarter.branchId={1} - EXIT!", this.getClass().getSimpleName(), headquarter.getHeadquartersId())); //NOI18N
-
- // Return updated instance
- return headquarter;
- }
-
- /**
- * Checks if given branch office's address is already persisted. The whole
- * (persisted) list is being loaded and each address is being matched
- * against the given branch office's address.
- * <p>
- * @param headquarter Headquarters office being checked
- * <p>
- * @return Whether it has been found
- */
- private boolean isHeadquarterFound (final Headquarter headquarter) {
- // Get whole list
- final List<Headquarter> headquarters = this.headquartersBean.allHeadquarters();
-
- // Default is not found
- boolean isFound = false;
-
- // Check all single addresses
- for (final Headquarter hq : headquarters) {
- // Is the same address found?
- if (Headquarters.isSameAddress(hq, headquarter)) {
- // Found one
- isFound = true;
- break;
- }
- }
-
- // Return flag
- return isFound;
- }
-
-}
+++ /dev/null
-/*
- * Copyright (C) 2017 Roland Häder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.model.headquarters;
-
-import java.text.MessageFormat;
-import java.util.List;
-import javax.ejb.Stateless;
-import javax.persistence.Query;
-import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
-
-/**
- * A stateless session bean for general headquarters purposes
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Stateless (name = "headquarters", description = "A general statless bean for handling headquarters data (all)")
-public class FinancialsHeadquartersSessionBean extends BaseFinancialsDatabaseBean implements HeadquartersSessionBeanRemote {
-
- /**
- * Serial number
- */
- private static final long serialVersionUID = 58_467_386_571_701L;
-
- @Override
- @SuppressWarnings ("unchecked")
- public List<Headquarter> allHeadquarters () {
- // Trace message
- this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allHeadquarters: CALLED!", this.getClass().getSimpleName())); //NOI18N
-
- // Get query
- final Query query = this.getEntityManager().createNamedQuery("AllHeadquarters"); //NOI18N
-
- // Get list from it
- final List<Headquarter> list = query.getResultList();
-
- // Trace message
- this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allHeadquarters: list.size()={1} - EXIT!", this.getClass().getSimpleName(), list.size())); //NOI18N
-
- // Return it
- return list;
- }
-
-}
--- /dev/null
+/*
+ * Copyright (C) 2017 Roland Häder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.headquarters;
+
+import java.text.MessageFormat;
+import java.util.Date;
+import java.util.List;
+import javax.ejb.EJB;
+import javax.ejb.Stateless;
+import org.mxchange.jcontactsbusiness.exceptions.headquarters.HeadquartersAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
+import org.mxchange.jcountry.model.data.Country;
+import org.mxchange.jusercore.model.user.User;
+import org.mxchange.pizzaapplication.enterpriseBasePizzaEnterpriseBean;
+
+/**
+ * A stateless session bean for administrative branch office purposes
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Stateless (name = "adminHeadquarter", description = "An administrative statless bean for handling branch office data (all)")
+public class PizzaAdminHeadquartersSessionBean extends BasePizzaEnterpriseBean implements AdminHeadquartersSessionBeanRemote {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 58_467_386_571_701L;
+
+ /**
+ * General branch office bean
+ */
+ @EJB (lookup = "java:global/pizzaapplication-ejb/headquarters!org.mxchange.jcontactsbusiness.model.headquarters.HeadquarterSessionBeanRemote")
+ private HeadquartersSessionBeanRemote headquartersBean;
+
+ /**
+ * Default constructor
+ */
+ public PizzaAdminHeadquartersSessionBean () {
+ // Call super constructor
+ super();
+ }
+
+ @Override
+ public Headquarter addHeadquarters (final Headquarter headquarter) throws HeadquartersAlreadyAddedException {
+ // Trace message
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.addHeadquarters(): headquarter={1} - CALLED!", this.getClass().getSimpleName(), headquarter)); //NOI18N
+
+ // Validate parameter
+ if (null == headquarter) {
+ // Throw NPE
+ throw new NullPointerException("headquarter is null"); //NOI18N
+ } else if (headquarter.getHeadquartersId() instanceof Long) {
+ // Should not happen
+ throw new IllegalArgumentException("headquarter.branchId should not be set."); //NOI18N
+ } else if (this.isHeadquarterFound(headquarter)) {
+ // Already added, abort here
+ throw new HeadquartersAlreadyAddedException(headquarter);
+ }
+
+ // Add created timestamp
+ headquarter.setHeadquartersCreated(new Date());
+
+ // Is user instance set?
+ if (headquarter.getHeadquartersUserOwner() instanceof User) {
+ // Get managed instance back
+ final User managedUser = this.createManaged(headquarter.getHeadquartersUserOwner());
+
+ // Set it back in branch office
+ headquarter.setHeadquartersUserOwner(managedUser);
+ }
+
+ // Is user instance set?
+ if (headquarter.getHeadquartersCountry() instanceof Country) {
+ // Get managed instance back
+ final Country managedCountry = this.createManaged(headquarter.getHeadquartersCountry());
+
+ // Set it back in branch office
+ headquarter.setHeadquartersCountry(managedCountry);
+ }
+
+ // Set "created" timestamp on any number assigned
+ this.setAllPhoneEntriesCreated(headquarter);
+
+ // Get opening times
+ final List<OpeningTime> openingTimes = headquarter.getHeadquartersOpeningTimes();
+
+ // Debugging:
+ this.getLoggerBeanLocal().logDebug(MessageFormat.format("{0}.addHeadquarters(): headquarter.headquarterOpeningTimes={1}", this.getClass().getSimpleName(), openingTimes));
+
+ // Is opening times set and not empty?
+ if ((openingTimes instanceof List) && (!openingTimes.isEmpty())) {
+ // Add created timestamp for all times
+ this.setAllOpeningTimesCreated(openingTimes);
+ } else {
+ // Set all to null
+ headquarter.setHeadquartersOpeningTimes(null);
+ }
+
+ // Persist it
+ this.getEntityManager().persist(headquarter);
+
+ // Trace message
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.addHeadquarters(): headquarter.branchId={1} - EXIT!", this.getClass().getSimpleName(), headquarter.getHeadquartersId())); //NOI18N
+
+ // Return updated instance
+ return headquarter;
+ }
+
+ /**
+ * Checks if given branch office's address is already persisted. The whole
+ * (persisted) list is being loaded and each address is being matched
+ * against the given branch office's address.
+ * <p>
+ * @param headquarter Headquarters office being checked
+ * <p>
+ * @return Whether it has been found
+ */
+ private boolean isHeadquarterFound (final Headquarter headquarter) {
+ // Get whole list
+ final List<Headquarter> headquarters = this.headquartersBean.allHeadquarters();
+
+ // Default is not found
+ boolean isFound = false;
+
+ // Check all single addresses
+ for (final Headquarter hq : headquarters) {
+ // Is the same address found?
+ if (Headquarters.isSameAddress(hq, headquarter)) {
+ // Found one
+ isFound = true;
+ break;
+ }
+ }
+
+ // Return flag
+ return isFound;
+ }
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2017 Roland Häder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.model.headquarters;
+
+import java.text.MessageFormat;
+import java.util.List;
+import javax.ejb.Stateless;
+import javax.persistence.Query;
+import org.mxchange.pizzaapplication.enterpriseBasePizzaEnterpriseBean;
+
+/**
+ * A stateless session bean for general headquarters purposes
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Stateless (name = "headquarters", description = "A general statless bean for handling headquarters data (all)")
+public class PizzaHeadquartersSessionBean extends BasePizzaEnterpriseBean implements HeadquartersSessionBeanRemote {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 58_467_386_571_701L;
+
+ @Override
+ @SuppressWarnings ("unchecked")
+ public List<Headquarter> allHeadquarters () {
+ // Trace message
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allHeadquarters: CALLED!", this.getClass().getSimpleName())); //NOI18N
+
+ // Get query
+ final Query query = this.getEntityManager().createNamedQuery("AllHeadquarters"); //NOI18N
+
+ // Get list from it
+ final List<Headquarter> list = query.getResultList();
+
+ // Trace message
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allHeadquarters: list.size()={1} - EXIT!", this.getClass().getSimpleName(), list.size())); //NOI18N
+
+ // Return it
+ return list;
+ }
+
+}
import java.text.MessageFormat;
import java.util.Date;
import javax.ejb.Stateless;
-import org.mxchange.jfinancials.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaapplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless session bean for administrative opening times purposes
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.Query;
-import org.mxchange.jfinancials.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaapplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless session bean for general opening times purposes
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.persistence.Query;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A singleton EJB for country informations
import java.util.Date;
import javax.ejb.Stateless;
import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* Administrative singleton EJB for mobile provider informations
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.persistence.Query;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A singleton EJB for mobile provider informations
import org.mxchange.jphone.model.phonenumbers.landline.LandLineNumbers;
import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber;
import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumbers;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* An EJB for administrative phone purposes
import org.mxchange.jphone.model.phonenumbers.landline.LandLineNumber;
import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber;
import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumber;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A general phone EJB
import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException;
import org.mxchange.jusercore.model.user.status.UserAccountStatus;
import org.mxchange.juserlogincore.model.user.register.UserRegistrationSessionBeanRemote;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* An administrative user EJB
import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
import org.mxchange.jusercore.model.user.status.UserAccountStatus;
import org.mxchange.juserlogincore.model.user.register.UserRegistrationSessionBeanRemote;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A user EJB
import javax.jms.MessageListener;
import javax.jms.ObjectMessage;
import org.mxchange.jusercore.model.user.User;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A message-driven bean for adding user activity log
import org.mxchange.jusercore.model.email_address.EmailAddressChange;
import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
import org.mxchange.juserlogincore.login.UserLoginUtils;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A session-scoped bean for changing email addresses
import javax.ejb.Stateless;
import javax.persistence.Query;
import org.mxchange.jusercore.model.user.User;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A user password history EJB
import org.mxchange.juserlogincore.exceptions.UserPasswordMismatchException;
import org.mxchange.juserlogincore.login.UserLoginUtils;
import org.mxchange.juserlogincore.model.user.register.UserRegistrationSessionBeanRemote;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A session EJB for user logins
import org.mxchange.jusercore.model.user.User;
import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
import org.mxchange.juserlogincore.login.UserLoginUtils;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A session-scoped bean for user registration
import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
import org.mxchange.jusercore.model.user.status.UserAccountStatus;
import org.mxchange.juserlogincore.model.user.register.UserRegistrationSessionBeanRemote;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A session-based EJB for resending confirmation links
import org.mxchange.jshopcore.model.customer.ShopCustomerUtils;
import org.mxchange.jshopcore.model.order.Orderable;
import org.mxchange.jshopcore.model.order.ShopOrder;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A basket for orderable items
import org.mxchange.jproduct.model.category.Category;
import org.mxchange.jproduct.model.category.ProductCategory;
import org.mxchange.jshopcore.model.category.AdminCategorySessionBeanRemote;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* An EJB for administrative access on categories
import org.mxchange.jproduct.model.category.Category;
import org.mxchange.jproduct.model.category.ProductCategory;
import org.mxchange.jshopcore.model.category.CategorySessionBeanRemote;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* Main shop class
import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException;
import org.mxchange.jcustomercore.model.customer.Customer;
import org.mxchange.jcustomercore.utils.CustomerUtils;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless administrative customer session-scoped bean (EJB)
import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException;
import org.mxchange.jcustomercore.exceptions.CustomerNotFoundException;
import org.mxchange.jcustomercore.model.customer.Customer;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A stateless customer session-scoped bean (EJB)
import org.mxchange.jproduct.model.product.GenericProduct;
import org.mxchange.jproduct.model.product.Product;
import org.mxchange.jshopcore.model.product.AdminProductSessionBeanRemote;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A session-scoped bean for non-administrative roles for products
import org.mxchange.jproduct.model.product.Product;
import org.mxchange.jshopcore.model.product.AdminProductSessionBeanRemote;
import org.mxchange.jshopcore.model.product.ProductSessionBeanRemote;
-import org.mxchange.pizzaaplication.database.BasePizzaEnterpriseBean;
+import org.mxchange.pizzaaplication.enterpriseBasePizzaEnterpriseBean;
/**
* A session-scoped bean for non-administrative roles for products