📄 hibernateproductdao.java
字号:
package org.springframework.samples.jpetstore.dao.hibernate;
import org.springframework.samples.jpetstore.dao.ProductDao;
import org.springframework.samples.jpetstore.domain.Product;
import org.springframework.dao.DataAccessException;
import net.sf.hibernate.cfg.*;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: Administrator
* Date: Mar 26, 2004
* Time: 4:03:50 PM
* To change this template use Options | File Templates.
*/
public class HibernateProductDao implements ProductDao {
public List getProductListByCategory(String categoryId) throws DataAccessException {
return null;
}
public List searchProductList(String keywords) throws DataAccessException {
return null;
}
public Product getProduct(String productId) throws DataAccessException {
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -