public void setMeanWage(WageDTO wageDTO) {
WagePK key = new WagePK();
key.setIndustrycode(wageDTO.getIndustryCode());
key.setOccupationcode(wageDTO.getOccupationCode());
Wage wage = manager.find(Wage.class, key);
if( wage == null ){
wage = new Wage();
wage.setIndustrycode(wageDTO.getIndustryCode());
wage.setOccupationcode(wageDTO.getOccupationCode());
wage.setMeanweekwage(wageDTO.getMeanWeekWage());
persist(wage);
} else {
wage.setMeanweekwage(wageDTO.getMeanWeekWage());
update(wage);
}
}