Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1017 → Rev 1018

/hostadmiral/trunk/src/ak/hostadmiral/core/model/InetDomainManager.java
116,7 → 116,8
{
try {
List list = HibernateUtil.currentSession().find(
"from InetDomain where name=?", name, Hibernate.STRING);
"select d from InetDomain d left join fetch d.owner where d.name=?",
name, Hibernate.STRING);
 
if(list.size() == 0)
return null;
271,7 → 272,7
"select d from InetDomain d left join fetch d.owner");
else
return HibernateUtil.currentSession().find(
"select d from InetDomain d left join fetch d.owner where d.owner=?",
"select d from InetDomain d where d.owner=?",
editor, Hibernate.entity(User.class));
}
catch(HibernateException ex)
304,7 → 305,7
 
try {
domains = HibernateUtil.currentSession().find(
"from InetDomain where owner = ?",
"select d from InetDomain d where d.owner = ?",
user, Hibernate.entity(User.class) );
}
catch(HibernateException ex)
338,7 → 339,7
 
try {
domains = HibernateUtil.currentSession().find(
"from InetDomain where owner = ?",
"select d from InetDomain d where d.owner = ?",
user, Hibernate.entity(User.class) );
}
catch(HibernateException ex)