Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }