* org.criticalfailure.torchlight.core.campaign.services.vo.translator.IStorageObjectTranslator#translateTo(java
* .lang .Object)
*/
public CampaignEventSO translateTo(CampaignEvent obj) {
CampaignEventSO vo = new CampaignEventSO();
vo.setId(obj.getId());
vo.setCampaignId(obj.getCampaign().getId());
vo.setDescription(obj.getDescription());
vo.setStartDate(obj.getStartDate().toString());
vo.setEndDate(obj.getEndDate().toString());
vo.setInsertDate(obj.getInsertDate());
Set<String> people = new HashSet<String>();
for(ObjectInstance person : obj.getPeople()) {
people.add(person.getId());
}
vo.setPeople(people);
return vo;
}