use of com.axelor.apps.hr.db.HRConfig in project axelor-open-suite by axelor.
the class AppHumanResourceServiceImpl method generateHrConfigurations.
@Override
@Transactional
public void generateHrConfigurations() {
List<Company> companies = companyRepo.all().filter("self.hrConfig is null").fetch();
for (Company company : companies) {
HRConfig hrConfig = new HRConfig();
hrConfig.setCompany(company);
hrConfigRepo.save(hrConfig);
}
}
Aggregations