public class User {
private String id;
private String username;
private String password;
private String email;
private String phone;
private String address;
}
public interface UserDao {
void addUser(User user);
void updateUser(User user);
void deleteUser(String id);
User getUserById(String id);
User getUserByUsername(String username);
List<User> searchUsers(String keyword);
}
public class UserDaoImpl implements UserDao {
private JdbcTemplate jdbcTemplate;
public UserDaoImpl(JdbcTemplate jdbcTemplate) {
this.jdbcTemplate = jdbcTemplate;
}
}
public class Product {
private String id;