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.jjobs.database.BaseJobsDatabaseBean;
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
-@Stateless (name = "adminBusinessData", description = "An administrative statless bean for handling business data (all)")
-public class JobsAdminBusinessDataSessionBean extends BaseJobsDatabaseBean implements AdminBusinessDataSessionBeanRemote {
+@Stateless (name = "adminBasicCompanyData", description = "An administrative statless bean for handling business data (all)")
+public class JobsAdminBusinessDataSessionBean extends BaseJobsDatabaseBean 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.jjobs.database.BaseJobsDatabaseBean;
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
-@Stateless (name = "businessData", description = "A general statless bean for handling business data (all)")
-public class JobsBusinessDataSessionBean extends BaseJobsDatabaseBean implements BusinessDataSessionBeanRemote {
+@Stateless (name = "basicCompanyData", description = "A general statless bean for handling business data (all)")
+public class JobsBusinessDataSessionBean extends BaseJobsDatabaseBean 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.jjobs.database.BaseJobsDatabaseBean;
import org.mxchange.jusercore.model.user.User;
// 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.jjobs.database.BaseJobsDatabaseBean;
/**
package org.mxchange.jcontactsbusiness.model.employee;
import javax.ejb.Stateless;
-import org.mxchange.jcontactsbusiness.employee.AdminCompanyEmployeeSessionBeanRemote;
import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
/**
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.jjobs.database.BaseJobsDatabaseBean;