示例#1
0
 public static void m3(Person p) {
   if (p instanceof Students) {
     ((Students) p).showDiag();
   }
   if (p instanceof Employee) {
     ((Employee) p).showDiag();
   }
 }
  public static StudentsSoap toSoapModel(Students model) {
    StudentsSoap soapModel = new StudentsSoap();

    soapModel.setId(model.getId());
    soapModel.setFirstName(model.getFirstName());
    soapModel.setLastName(model.getLastName());
    soapModel.setExamFee(model.getExamFee());
    soapModel.setGender(model.getGender());
    soapModel.setSubjectsId(model.getSubjectsId());
    soapModel.setAddress(model.getAddress());
    soapModel.setCreateDate(model.getCreateDate());
    soapModel.setModifiedDate(model.getModifiedDate());

    return soapModel;
  }