feat(dao): add initial data access object templates

This commit is contained in:
2026-06-17 01:48:03 +03:30
parent 8c10f88862
commit 01205384f4
5 changed files with 111 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package dev.dao;
import dev.model.Order;
import java.util.List;
public class OrderDao {
public int save(Order order) {
// TODO:
// Insert order and return generated id
return -1;
}
public List<Order> findByUserId(int userId) {
// TODO:
// Retrieve all orders of a user
return null;
}
}