1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.in2.simpleBoard.dao;
19
20 import java.util.Date;
21 import java.util.List;
22 import org.appfuse.dao.GenericDao;
23 import org.in2.simpleBoard.model.Person;
24 import org.in2.simpleBoard.model.Board;
25 import org.in2.simpleBoard.model.Category;
26
27 public interface BoardDao extends GenericDao<Board, Long> {
28
29 List<Board> findByUser(Person user);
30 List<Board> findByUserId(Long userId);
31 List<Board> findByCategory(Category category);
32 List<Board> findByCategoryId(Long categoryId);
33 List<Board> findByBoard(Board board);
34 Board findByBoardId(Long boardId);
35 List<Board> findByDate(Date date);
36
37 List<Board> findAllBoard();
38 }