PageRenderTime 1ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/plugins/parancoe-plugin-configuration/src/main/java/org/parancoe/plugin/configuration/dao/CategoryDao.java

https://code.google.com/p/parancoe/
Java | 29 lines | 10 code | 2 blank | 17 comment | 0 complexity | 795e79d8789fae86bc084f6202686dfd MD5 | raw file
 1/**
 2 * Copyright (C) 2006-2012 The Parancoe Team <info@parancoe.org>
 3 *
 4 * This file is part of Parancoe Plugin Configuration.
 5 *
 6 * Licensed under the Apache License, Version 2.0 (the "License");
 7 * you may not use this file except in compliance with the License.
 8 * You may obtain a copy of the License at
 9 *
10 *  http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18package org.parancoe.plugin.configuration.dao;
19
20import java.util.List;
21import org.lambico.dao.generic.Dao;
22import org.lambico.dao.generic.GenericDao;
23import org.parancoe.plugin.configuration.po.Category;
24
25@Dao(entity=Category.class)
26public interface CategoryDao extends GenericDao<Category, Long> {
27    Category findByName(String name);
28    List<Category> findByOrderByName();
29}