@Test public void findAllByCategoryId() { AttributeQueryRequest request = new AttributeQueryRequest(); request.setCategoryId(3L); ICResponse<List<CategoryAttributeInfo>> allByCategoryId = attributeBaseReadFacade.findAllByCategoryId(request); printJson(allByCategoryId); }
@Override public ICResponse<List<CategoryAttributeInfo>> findAllByCategoryId(AttributeQueryRequest request) { if(request==null){ throw new IllegalArgumentException("find_all_by_category_id request is null"); } request.checkParam(); return attributeBaseReadFacade.findAllByCategoryId(request); }
AttributeBaseReadService implements AttributeBaseReadFacade { @Override public ICResponse<List<CategoryAttributeInfo>> findAllByCategoryId(AttributeQueryRequest request) { if(request==null){ throw new IllegalArgumentException("find_all_by_category_id request is null"); } request.checkParam(); return attributeBaseReadFacade.findAllByCategoryId(request); } }
AttributeBaseReadService implements AttributeBaseReadFacade { @Override public ICResponse<List<CategoryAttributeInfo>> findAllByCategoryId(AttributeQueryRequest request) { if(request==null){ throw new IllegalArgumentException("find_all_by_category_id request is null"); } request.checkParam(); return attributeBaseReadFacade.findAllByCategoryId(request); }  }
AttributeBaseReadService implements AttributeBaseReadFacade { @Override public ICResponse<List<CategoryAttributeInfo>> findAllByCategoryId(AttributeQueryRequest request) { if(request==null){ throw new IllegalArgumentException("find_all_by_category_id request is null"); } request.checkParam(); return attributeBaseReadFacade.findAllByCategoryId(request); }  @Override ICResponse<List<CategoryAttributeInfo>> findAllByCategoryId(AttributeQueryRequest request); }
AttributeBaseReadService implements AttributeBaseReadFacade { @Override public ICResponse<List<CategoryAttributeInfo>> findAllByCategoryId(AttributeQueryRequest request) { if(request==null){ throw new IllegalArgumentException("find_all_by_category_id request is null"); } request.checkParam(); return attributeBaseReadFacade.findAllByCategoryId(request); }  @Override ICResponse<List<CategoryAttributeInfo>> findAllByCategoryId(AttributeQueryRequest request);  }