Exemple #1
0
 public static Connector mapRestResourceToDomainEntity(
     com.lbi.mytestapplication.rest.ressource.Connector connector) {
   Connector connect = new Connector();
   connect.setName(connector.getName());
   connect.setId(connector.getId());
   connect.setConsumeQueue(connector.getConsumeQueue());
   connect.setProduceQueue(connector.getProduceQueue());
   connect.setStatus(Status.STARTED);
   connect.setEndPoint(connector.getEndPoint());
   return connect;
 }
Exemple #2
0
 public static com.lbi.mytestapplication.rest.ressource.Connector mapDomainEntityToRestResource(
     Connector c) {
   com.lbi.mytestapplication.rest.ressource.Connector connectRsc =
       new com.lbi.mytestapplication.rest.ressource.Connector();
   connectRsc.setName(c.getName());
   connectRsc.setId(c.getId());
   connectRsc.setConsumeQueue(c.getConsumeQueue());
   connectRsc.setProduceQueue(c.getProduceQueue());
   connectRsc.setStatus(c.getStatus());
   connectRsc.setEndPoint(c.getEndPoint());
   return connectRsc;
 }