Rev 1332 | Rev 1338 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1332 | jmachado | 1 | package pt.estgp.estgweb.domain.dao.impl; |
2 | |||
1333 | jmachado | 3 | import pt.estgp.estgweb.domain.QuestionarioPedagogicoCursoAfeto; |
4 | |||
5 | import java.util.List; |
||
6 | |||
7 | import static org.hibernate.criterion.Restrictions.eq; |
||
8 | |||
1332 | jmachado | 9 | /** |
10 | * Created by jorgemachado on 24/03/16. |
||
11 | */ |
||
12 | public class QuestionarioPedagogicoCursoAfetoDaoImpl extends QuestionarioPedagogicoCursoAfetoDao{ |
||
13 | |||
14 | public static QuestionarioPedagogicoCursoAfetoDaoImpl getInstance() { |
||
15 | if (myInstance == null) |
||
16 | myInstance = new QuestionarioPedagogicoCursoAfetoDaoImpl(); |
||
17 | return (QuestionarioPedagogicoCursoAfetoDaoImpl) myInstance; |
||
18 | } |
||
1333 | jmachado | 19 | |
20 | public List<QuestionarioPedagogicoCursoAfeto> find(long questionarioId,1.5.0/docs/api/java/lang/String.html">String cursoCode) |
||
21 | { |
||
22 | return createCriteria() |
||
23 | .add(eq("questionario.id", questionarioId)) |
||
24 | .add(eq("codigoCurso", cursoCode)) |
||
25 | .list(); |
||
26 | } |
||
27 | public List<QuestionarioPedagogicoCursoAfeto> find(long questionarioId) |
||
28 | { |
||
29 | return createCriteria() |
||
30 | .add(eq("questionario.id", questionarioId)) |
||
31 | .list(); |
||
32 | } |
||
1332 | jmachado | 33 | } |