import java.util.Objects;
import javax.ejb.EJB;
import javax.ejb.Stateless;
-import org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemote;
-import org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataAlreadyAddedException;
import org.mxchange.jcontactsbusiness.model.employee.Employee;
import org.mxchange.jusercore.model.user.User;
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
-@Stateless (name = "adminBusinessData", description = "An administrative statless bean for handling business data (all)")
-public class PizzaAdminBusinessDataSessionBean extends BasePizzaDatabaseBean implements AdminBusinessDataSessionBeanRemote {
+@Stateless (name = "adminBasicCompanyData", description = "An administrative statless bean for handling business data (all)")
+public class PizzaAdminBusinessDataSessionBean extends BasePizzaDatabaseBean implements AdminBasicCompanyDataSessionBeanRemote {
/**
* Serial number
* Administrative EJB
*/
@EJB
- private BusinessDataSessionBeanRemote businessDataBean;
+ private BasicCompanyDataSessionBeanRemote businessDataBean;
/**
* Default constructor
import javax.ejb.Stateless;
import javax.persistence.NoResultException;
import javax.persistence.Query;
-import org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataNotFoundException;
import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
-@Stateless (name = "businessData", description = "A general statless bean for handling business data (all)")
-public class PizzaBusinessDataSessionBean extends BasePizzaDatabaseBean implements BusinessDataSessionBeanRemote {
+@Stateless (name = "basicCompanyData", description = "A general statless bean for handling business data (all)")
+public class PizzaBusinessDataSessionBean extends BasePizzaDatabaseBean implements BasicCompanyDataSessionBeanRemote {
/**
* Serial number
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
-import org.mxchange.jcontactsbusiness.branchoffice.AdminBranchOfficeSessionBeanRemote;
-import org.mxchange.jcontactsbusiness.branchoffice.BranchOfficeSessionBeanRemote;
import org.mxchange.jcontactsbusiness.exceptions.branchoffice.BranchOfficeAlreadyAddedException;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcountry.model.data.Country;
// Check all single addresses
for (final BranchOffice bo : branchOffices) {
// Is the same address found?
- if (BranchOfficeUtils.isSameAddress(bo, branchOffice)) {
+ if (BranchOffices.isSameAddress(bo, branchOffice)) {
// Found one
isFound = true;
break;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.Query;
-import org.mxchange.jcontactsbusiness.branchoffice.BranchOfficeSessionBeanRemote;
import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
/**
package org.mxchange.jcontactsbusiness.model.employee;
import javax.ejb.Stateless;
-import org.mxchange.jcontactsbusiness.employee.AdminCompanyEmployeeSessionBeanRemote;
import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
/**
import javax.ejb.Stateless;
import javax.persistence.NoResultException;
import javax.persistence.Query;
-import org.mxchange.jcontactsbusiness.employee.CompanyEmployeeSessionBeanRemote;
import org.mxchange.jcontactsbusiness.exceptions.employee.CompanyEmployeeNotFoundException;
import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;