/**
*
*/
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;
}
}