1 16 package johnmammen.betterpetshop.service.dao.hibernate; 17 18 import java.io.Serializable ; 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 30 public class BannerdataDAO extends HibernateDaoSupport implements Serializable , IBannerdataDAO { 31 32 35 public BannerdataDAO() { 36 super(); 37 } 38 39 42 public String getBannerPath(String favCategory) { 43 this.getHibernateTemplate().find( 44 "FROM bannerdata WHERE (favcategory = ?)", favCategory, 45 Hibernate.CHARACTER); 46 return null; 47 48 } 49 50 } 51 | Popular Tags |