import javax.enterprise.event.Observes;
import javax.inject.Inject;
import javax.inject.Named;
-import org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemote;
-import org.mxchange.jcontactsbusiness.basicdata.BusinessBasicData;
-import org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote;
+import org.mxchange.jcontactsbusiness.model.basicdata.AdminBusinessDataSessionBeanRemote;
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.events.basicdata.added.ObservableAdminAddedBusinessBasicDataEvent;
-import org.mxchange.jcountry.data.Country;
+import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jjobs.beans.BaseJobsController;
import org.mxchange.jjobs.beans.user.login.JobsUserLoginWebSessionController;
} else if (event.getBasicData() == null) {
// Throw NPE again
throw new NullPointerException("event.basicData is null");
- } else if (event.getBasicData().getCompanyDataId() == null) {
+ } else if (event.getBasicData().getBasicDataId() == null) {
// Throw NPE again
- throw new NullPointerException("event.basicData.companyDataId is null");
- } else if (event.getBasicData().getCompanyDataId() < 1) {
+ throw new NullPointerException("event.basicData.basicDataId is null");
+ } else if (event.getBasicData().getBasicDataId() < 1) {
// Throw IAE
- throw new IllegalArgumentException(MessageFormat.format("event.basicData.companyDataId={0} is invalid", event.getBasicData().getCompanyDataId()));
+ throw new IllegalArgumentException(MessageFormat.format("event.basicData.basicDataId={0} is invalid", event.getBasicData().getBasicDataId()));
} else if (event.getBasicData().getCompanyName() == null) {
// Throw NPE again
throw new NullPointerException("event.basicData.companyName is null");
}
// Add it to list
- this.basicDataCache.put(event.getBasicData().getCompanyDataId(), event.getBasicData());
+ this.basicDataCache.put(event.getBasicData().getBasicDataId(), event.getBasicData());
}
/**
final BusinessBasicData next = iterator.next();
// Add it to cache
- this.basicDataCache.put(next.getCompanyDataId(), next);
+ this.basicDataCache.put(next.getBasicDataId(), next);
}
}
}