-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from nhkhai/main
SIS-27 & SIS-29: Added Basic CRUD for Customer And Product.
- Loading branch information
Showing
5 changed files
with
130 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
10 changes: 10 additions & 0 deletions
10
src/main/java/sg/com/smartinventory/services/CustomerService.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
package sg.com.smartinventory.services; | ||
|
||
import java.util.ArrayList; | ||
|
||
import sg.com.smartinventory.entities.Customer; | ||
// import sg.com.smartinventory.entities.Review; | ||
|
||
public interface CustomerService { | ||
Customer createCustomer(Customer customer); | ||
|
||
Customer getCustomer(long id); | ||
|
||
ArrayList<Customer> getAllCustomers(); | ||
|
||
Customer updateCustomer(long id, Customer customer); | ||
|
||
void deleteCustomer(long id); | ||
|
||
// Review addReviewToCustomer(long customerId, long productId, Review review); | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/sg/com/smartinventory/services/ProductService.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
package sg.com.smartinventory.services; | ||
|
||
import java.util.ArrayList; | ||
|
||
import sg.com.smartinventory.entities.Product; | ||
|
||
public interface ProductService { | ||
Product createProduct(Product product); | ||
|
||
Product getProduct(long id); | ||
|
||
ArrayList<Product> getAllProducts(); | ||
|
||
Product updateProduct(long id, Product product); | ||
|
||
void deleteProduct(long id); | ||
} |