Package com.cin.dto

Source Code of com.cin.dto.YouthDTO

/**
*
*/
package com.cin.dto;

import java.io.Serializable;

import com.cin.entity.Youth;

/**
* @author arunsanjay
*
*/
public class YouthDTO implements Serializable {
  private static final long serialVersionUID = 1L;
 
  private String parents;
 
  public YouthDTO(){ 
  }
  public YouthDTO(Youth youth){
    setParents(youth.getParents());
  }
 
  public String getParents() {
    return parents;
  }
  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;
  }

}
TOP

Related Classes of com.cin.dto.YouthDTO

TOP
Copyright © 2018 www.massapi.com. 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.