Rev 202 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package pt.estgp.estgweb.domain.dao.impl;
import pt.estgp.estgweb.domain.Student;
import pt.estgp.estgweb.domain.CourseUnit;
import static org.
hibernate.
criterion.
Restrictions.
*;
import java.util.Set;
/**
* @author Jorge Machado
* @date 28/Fev/2008
* @time 2:51:06
* @see pt.estgp.estgweb.domain.dao.impl
*/
public class StudentDaoImpl
extends StudentDao
{
private StudentDaoImpl
(){}
public static StudentDaoImpl getInstance
()
{
if (myInstance ==
null)
myInstance =
new StudentDaoImpl
();
return (StudentDaoImpl
) myInstance
;
}
public Student loadBySigesCode
(int sigesCode
)
{
return (Student
) createCriteria
().
add(eq
("sigesCode",sigesCode
)).
uniqueResult();
}
public Student loadBySigesCode
(1.5.0/docs/api/java/lang/String.html">String sigesCode
)
{
return (Student
) createCriteria
().
add(eq
("sigesCode",sigesCode
)).
uniqueResult();
}
}