blob: d76a9d3b9a15113aad7d8fdb87ace0a2cf4faee8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package org.fedoraproject.candlepin.model;
import org.hibernate.criterion.Restrictions;
public class OwnerCurator extends AbstractHibernateRepository<Owner> {
protected OwnerCurator() {
super(Owner.class);
}
public Owner lookupByName(String name) {
return (Owner) currentSession().createCriteria(Owner.class)
.add(Restrictions.like("name", name))
.uniqueResult();
}
}
|