Search in sources :

Example 1 with EventPropertiesReference

use of org.bedework.calfacade.EventPropertiesReference in project bw-calendar-engine by Bedework.

the class CoreEventPropertiesDAO method getRefs.

@SuppressWarnings("unchecked")
private List<EventPropertiesReference> getRefs(final BwEventProperty val, final String query) throws CalFacadeException {
    final HibSession sess = getSess();
    sess.createQuery(query);
    sess.setEntity("ent", val);
    /* May get multiple counts back for events and annotations. */
    final List<EventPropertiesReference> refs = sess.getList();
    if (debug) {
        debug(" ----------- count = " + refs.size());
    }
    return refs;
}
Also used : HibSession(org.bedework.calcorei.HibSession) EventPropertiesReference(org.bedework.calfacade.EventPropertiesReference)

Aggregations

HibSession (org.bedework.calcorei.HibSession)1 EventPropertiesReference (org.bedework.calfacade.EventPropertiesReference)1