@Test public void testFillMeta() { EntityList entityList = new EntityList(); TesttableMySQL pojo = createMySQLPOJO(); EntityMeta meta = DasRemoteDelegate.extract(pojo.getClass()); entityList.setEntityMeta(meta); Entity entity = new Entity(); entity.setValue(new Gson().toJson(pojo)); entityList.addToRows(new Entity()); DasRequest dasRequest = new DasRequest().setEntityList(entityList); Entity entity1 = ConvertUtils.fillMeta(dasRequest); List<Entity> entity2 = ConvertUtils.fillMetas(dasRequest); Assert.assertNotNull(dasRequest.getEntityList().getRows().get(0).getEntityMeta()); }
public static Entity fillMeta(DasRequest request) { EntityMeta meta = request.getEntityList().getEntityMeta(); Entity entity = request.getEntityList().getRows().get(0); return entity.setEntityMeta(meta); }
ConvertUtils { public static Entity fillMeta(DasRequest request) { EntityMeta meta = request.getEntityList().getEntityMeta(); Entity entity = request.getEntityList().getRows().get(0); return entity.setEntityMeta(meta); } }
ConvertUtils { public static Entity fillMeta(DasRequest request) { EntityMeta meta = request.getEntityList().getEntityMeta(); Entity entity = request.getEntityList().getRows().get(0); return entity.setEntityMeta(meta); }  }
ConvertUtils { public static Entity fillMeta(DasRequest request) { EntityMeta meta = request.getEntityList().getEntityMeta(); Entity entity = request.getEntityList().getRows().get(0); return entity.setEntityMeta(meta); }  static Entity pojo2Entity(Object row, EntityMeta meta); static List<Entity> pojo2Entities(List rows, EntityMeta meta); static T entity2POJO(Entity r, EntityMeta meta, Class clz); static List<T> entity2POJOs(List<Entity> rows, EntityMeta meta, Class clz); static Entity fillMeta(DasRequest request); static List<Entity> fillMetas(DasRequest request); }
ConvertUtils { public static Entity fillMeta(DasRequest request) { EntityMeta meta = request.getEntityList().getEntityMeta(); Entity entity = request.getEntityList().getRows().get(0); return entity.setEntityMeta(meta); }  static Entity pojo2Entity(Object row, EntityMeta meta); static List<Entity> pojo2Entities(List rows, EntityMeta meta); static T entity2POJO(Entity r, EntityMeta meta, Class clz); static List<T> entity2POJOs(List<Entity> rows, EntityMeta meta, Class clz); static Entity fillMeta(DasRequest request); static List<Entity> fillMetas(DasRequest request);  }