Search in sources :

Example 6 with CfStylesheet

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

the class CfStylesheetDAOImpl method findByName.

@Override
public CfStylesheet findByName(String name) {
    Session session = this.sessionFactory.getCurrentSession();
    TypedQuery query = (TypedQuery) session.getNamedQuery("CfStylesheet.findByName");
    query.setParameter("name", name);
    CfStylesheet cfstylesheet = (CfStylesheet) query.getSingleResult();
    return cfstylesheet;
}
Also used : TypedQuery(javax.persistence.TypedQuery) CfStylesheet(io.clownfish.clownfish.dbentities.CfStylesheet) Session(org.hibernate.Session)

Aggregations

CfStylesheet (io.clownfish.clownfish.dbentities.CfStylesheet)6 FacesMessage (javax.faces.application.FacesMessage)3 TypedQuery (javax.persistence.TypedQuery)3 Session (org.hibernate.Session)3 CfDiv (io.clownfish.clownfish.datamodels.CfDiv)1 CfLayout (io.clownfish.clownfish.datamodels.CfLayout)1 CfAssetlist (io.clownfish.clownfish.dbentities.CfAssetlist)1 CfClasscontent (io.clownfish.clownfish.dbentities.CfClasscontent)1 CfDatasource (io.clownfish.clownfish.dbentities.CfDatasource)1 CfJavascript (io.clownfish.clownfish.dbentities.CfJavascript)1 CfKeywordlist (io.clownfish.clownfish.dbentities.CfKeywordlist)1 CfList (io.clownfish.clownfish.dbentities.CfList)1 CfSiteassetlist (io.clownfish.clownfish.dbentities.CfSiteassetlist)1 CfSitecontent (io.clownfish.clownfish.dbentities.CfSitecontent)1 CfSitedatasource (io.clownfish.clownfish.dbentities.CfSitedatasource)1 CfSitekeywordlist (io.clownfish.clownfish.dbentities.CfSitekeywordlist)1 CfSitelist (io.clownfish.clownfish.dbentities.CfSitelist)1 CfTemplate (io.clownfish.clownfish.dbentities.CfTemplate)1 ConstraintViolationException (jakarta.validation.ConstraintViolationException)1 BigInteger (java.math.BigInteger)1