public static EndPoint mapRestResourceToDomainEntity( com.lbi.mytestapplication.rest.ressource.EndPoint epr) { EndPoint ep = new EndPoint(); ep.setId(epr.getId()); ep.setApplication(epr.getApplication()); ep.setUrl(epr.getUrl()); return ep; }
public static com.lbi.mytestapplication.rest.ressource.EndPoint mapDomainEntityToRestResource( EndPoint ep) { com.lbi.mytestapplication.rest.ressource.EndPoint epr = new com.lbi.mytestapplication.rest.ressource.EndPoint(); epr.setId(ep.getId()); epr.setApplication(ep.getApplication()); epr.setUrl(ep.getUrl()); return epr; }