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());
}
}