Package com.cin.entity

Examples of com.cin.entity.Job


      update(ejb);
    }
  }
  public void updateUserJob(UserDTO user)
  {
    Job ejb = manager.find(Job.class, user.getSsn());
    if( ejb == null )
    {
      ejb = user.getJobDetails().toEJB(user.getSsn());
      persist(ejb);
    } else {
      Industry ind = new Industry();
      Occupation occ = new Occupation();
      ind.setIndustrycode(user.getJobDetails().getIndustryCode());
      occ.setOccupationcode(user.getJobDetails().getOccupationCode());
      ejb.setEmployersize(user.getJobDetails().getEmployerSize());
      ejb.setIndustry(ind);
      ejb.setOccupation(occ);
      ejb.setSelfemployed(user.getJobDetails().getSelfEmployed());
      ejb.setUnionmember(user.getJobDetails().getUnionMember());
      ejb.setWeekwage(user.getJobDetails().getWeekWage());
      ejb.setWorkclass(user.getJobDetails().getWorkClass());
      ejb.setWorkweeks(user.getJobDetails().getWorkWeeks());

      update(ejb);
    }
  }
View Full Code Here


  public void setWorkWeeks(int workWeeks) {
    this.workWeeks = workWeeks;
  }
 
  public Job toEJB(int ssn){
    Job ejb = new Job();
    ejb.setEmployersize(employerSize);
    //ejb.setIndustry(null);
    //ejb.setOccupation(null);
    ejb.setSelfemployed(selfEmployed);
    ejb.setSsn(ssn);
    ejb.setUnionmember(unionMember);
    ejb.setWeekwage(weekWage);
    ejb.setWorkclass(workClass);
    ejb.setWorkweeks(workWeeks);
    return ejb;
  }
View Full Code Here

TOP

Related Classes of com.cin.entity.Job

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.