/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. */
  18. package org.parancoe.plugin.configuration.dao;
  19. import java.util.List;
  20. import org.lambico.dao.generic.Dao;
  21. import org.lambico.dao.generic.GenericDao;
  22. import org.parancoe.plugin.configuration.po.Category;
  23. @Dao(entity=Category.class)
  24. public interface CategoryDao extends GenericDao<Category, Long> {
  25. Category findByName(String name);
  26. List<Category> findByOrderByName();
  27. }