package org.openinfobutton.responder.dao.impl;
/*
* #%L
* Project: oib-rest-responder
* Director: Guilherme Del Fiol, MD, PhD
* University of Utah
* Biomedical Informatics
* 421 Wakara Way, Suite 140
* Salt Lake City, UT 84108-3514
* Phone: 801-581-4080
* %%
* Copyright (C) 2010 - 2014 University of Utah
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import java.util.List;
import org.hibernate.criterion.Restrictions;
import org.openinfobutton.app.dao.DaoBase;
import org.openinfobutton.app.model.AppProperty;
import org.openinfobutton.responder.dao.ResponderAppPropertyDao;
import org.springframework.stereotype.Repository;
/**
*
* @author Rick Bradshaw
*/
@Repository
public class ResponderAppPropertyDaoImpl extends DaoBase<AppProperty> implements ResponderAppPropertyDao {
@Override
public List<AppProperty> getAppPropertyGroup(String propertyGroup) {
return getSessionFactory()
.getCurrentSession()
.createCriteria(AppProperty.class)
.add(Restrictions.eq("propertyGroup", propertyGroup))
.list();
}
}