Subversion Repositories bacoAlunos

Rev

Rev 110 | Rev 119 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
110 susana 1
package pt.estgp.estgweb.domain.dao.impl;
2
 
116 jmachado 3
import pt.estgp.estgweb.domain.CourseUnit;
4
import static org.hibernate.criterion.Restrictions.*;
5
 
110 susana 6
/**
7
 * @author Jorge Machado
8
 * @date 28/Fev/2008
9
 * @time 2:51:06
10
 * @see pt.estgp.estgweb.domain.dao.impl
11
 */
12
public class CourseUnitDaoImpl extends CourseUnitDao
13
{
14
 
15
 
16
    private CourseUnitDaoImpl() {
17
    }
18
 
19
    public static CourseUnitDaoImpl getInstance()
20
    {
21
        if (myInstance == null)
22
            myInstance = new CourseUnitDaoImpl();
23
        return (CourseUnitDaoImpl) myInstance;
24
    }
25
 
116 jmachado 26
    public CourseUnit loadBySigesCode(1.5.0/docs/api/java/lang/String.html">String sigesCode)
27
    {
28
        return (CourseUnit) createCriteria().add(eq("sigesCode",sigesCode)).uniqueResult();
29
    }
30
 
110 susana 31
}