Created
December 18, 2020 18:31
-
-
Save aytekin/239710e94a0646cb696631bc593fded4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProductService { | |
List<ProductDto> products = new ArrayList<ProductDto>(); | |
ProductDto product; | |
public List<ProductDto> getProducts(){ | |
return products; | |
} | |
public ProductDto get(Long id) throws ClassNotFoundException{ | |
return product; | |
} | |
public ProductDto getByTitle(String title) { | |
return product; | |
} | |
public Long save(ProductDto product) throws StackOverflowError,IllegalArgumentException{ | |
return (long) 1; | |
} | |
public boolean delete(Long id){ | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment