Search in sources :

Example 6 with CfSitelist

use of io.clownfish.clownfish.dbentities.CfSitelist in project Clownfish by rawdog71.

the class CfSitelistDAOImpl method findBySiteref.

@Override
public List<CfSitelist> findBySiteref(Long ref) {
    Session session = this.sessionFactory.getCurrentSession();
    TypedQuery query = (TypedQuery) session.getNamedQuery("CfSitelist.findBySiteref");
    query.setParameter("siteref", ref);
    List<CfSitelist> cfsitelistlist = query.getResultList();
    return cfsitelistlist;
}
Also used : TypedQuery(javax.persistence.TypedQuery) CfSitelist(io.clownfish.clownfish.dbentities.CfSitelist) Session(org.hibernate.Session)

Aggregations

CfSitelist (io.clownfish.clownfish.dbentities.CfSitelist)6 CfClasscontent (io.clownfish.clownfish.dbentities.CfClasscontent)3 CfList (io.clownfish.clownfish.dbentities.CfList)3 TypedQuery (javax.persistence.TypedQuery)3 Session (org.hibernate.Session)3 CfAssetlist (io.clownfish.clownfish.dbentities.CfAssetlist)2 CfDatasource (io.clownfish.clownfish.dbentities.CfDatasource)2 CfKeywordlist (io.clownfish.clownfish.dbentities.CfKeywordlist)2 CfSiteassetlist (io.clownfish.clownfish.dbentities.CfSiteassetlist)2 CfSitecontent (io.clownfish.clownfish.dbentities.CfSitecontent)2 CfSitedatasource (io.clownfish.clownfish.dbentities.CfSitedatasource)2 CfSitekeywordlist (io.clownfish.clownfish.dbentities.CfSitekeywordlist)2 FacesMessage (javax.faces.application.FacesMessage)2 CfDiv (io.clownfish.clownfish.datamodels.CfDiv)1 CfLayout (io.clownfish.clownfish.datamodels.CfLayout)1 CfAttributcontent (io.clownfish.clownfish.dbentities.CfAttributcontent)1 CfJavascript (io.clownfish.clownfish.dbentities.CfJavascript)1 CfListcontent (io.clownfish.clownfish.dbentities.CfListcontent)1 CfSiteassetlistPK (io.clownfish.clownfish.dbentities.CfSiteassetlistPK)1 CfSitecontentPK (io.clownfish.clownfish.dbentities.CfSitecontentPK)1