KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > johnmammen > betterpetshop > service > dao > hibernate > BannerdataDAO


1 /*
2    Copyright 2004 John S. Mammen
3
4    Licensed under the Apache License, Version 2.0 (the "License");
5    you may not use this file except in compliance with the License.
6    You may obtain a copy of the License at
7
8        http://www.apache.org/licenses/LICENSE-2.0
9
10    Unless required by applicable law or agreed to in writing, software
11    distributed under the License is distributed on an "AS IS" BASIS,
12    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    See the License for the specific language governing permissions and
14    limitations under the License.
15 */

16 package johnmammen.betterpetshop.service.dao.hibernate;
17
18 import java.io.Serializable JavaDoc;
19
20 import johnmammen.betterpetshop.service.dao.IBannerdataDAO;
21 import net.sf.hibernate.Hibernate;
22
23 import org.springframework.orm.hibernate.support.HibernateDaoSupport;
24
25
26 /**
27  * @author admin
28
29  */

30 public class BannerdataDAO extends HibernateDaoSupport implements Serializable JavaDoc, IBannerdataDAO {
31
32     /**
33      *
34      */

35     public BannerdataDAO() {
36         super();
37     }
38
39     /* (non-Javadoc)
40      * @see johnmammen.betterpetshop.service.dao.IBannerdataDAO#getBannerPath(java.lang.String)
41      */

42     public String JavaDoc getBannerPath(String JavaDoc favCategory) {
43         this.getHibernateTemplate().find(
44                 "FROM bannerdata WHERE (favcategory = ?)", favCategory,
45                 Hibernate.CHARACTER);
46         return null;
47         
48     }
49
50 }
51
Popular Tags