/hostadmiral/trunk/src/ak/hostadmiral/core/model/InetDomainManager.java |
---|
267,10 → 267,12 |
{ |
try { |
if(editor.isSuperuser()) |
return HibernateUtil.currentSession().find("from InetDomain"); |
return HibernateUtil.currentSession().find( |
"select d from InetDomain d left join fetch d.owner"); |
else |
return HibernateUtil.currentSession().find( |
"from InetDomain where owner=?", editor, Hibernate.entity(User.class)); |
"select d from InetDomain d left join fetch d.owner where d.owner=?", |
editor, Hibernate.entity(User.class)); |
} |
catch(HibernateException ex) |
{ |