contento3/Projects — comment on commit fefbed06ef60bf77e494ee32ac0337e8b25ff241
File: core/src/main/java/com/contento3/cms/article/dao/impl/ArticleDaoHibernateImpl.java line 24
By hamakhaa:

You need to define many to one relationship first in the Article.java class and then use the account.accountId field in the Restrictions.eq.And also here you will use .createCriteria(account) as well as .createCriteria(Article.class).

Have a look at Site.java and SiteDAOHibernateImpl, there is a findByAccount method.