Prompt Detail:
package com.kh.myproduct.svc;
import com.kh.myproduct.dao.Product;
import java.util.List;
import java.util.Optional;
public interface ProductSVC {
//등록
Long save(Product product);
//조회;
Optional<Product> findById(Long productId);
//수정
int update(Long productId,Product product);
//삭제
int delete(Long productId);
//목록
List<Product> findAll();
/**
* 상품존재유무
* @param productId 상품아이디
* @return
*/
boolean isExist(Long productId);
}
Answer in English.
Please write in English language.
Add a comment