Package com.cin.entity

Examples of com.cin.entity.Youth


  public void setParents(String parents) {
    this.parents = parents;
  }
 
  public Youth toEJB(int ssn){
    Youth ejb = new Youth();
    ejb.setParents(parents);
    ejb.setSsn(ssn);
    return ejb;
  }
View Full Code Here


      ejb.setStockdividends(user.getInvestmentDetails().getStockDividends());
      update(ejb);
    }
  }
  public void updateUserYouth(UserDTO user){
    Youth ejb = manager.find(Youth.class, user.getSsn());
    if( ejb == null ){
      ejb = user.getYouth().toEJB(user.getSsn());
      persist(ejb);
    } else {
      ejb.setParents(user.getYouth().getParents());
    }
  }
View Full Code Here

TOP

Related Classes of com.cin.entity.Youth

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.