資源簡介
該系統使用Oracle數據庫連接,sql文件都在壓縮包里,導入就能運行。
代碼片段和文件信息
package?com.lyq.dao;
import?java.util.List;
import?com.lyq.persistence.Category;
import?com.lyq.util.HibernateFilter;
/**
?*?藥品類別數據庫操作類
?*?@author?Li?Yong?Qiang
?*/
public?class?CategoryDao?extends?SupperDao?{
/**
?*?根據id查詢類別
?*?@param?id?
?*?@return?Category
?*/
public?Category?loadCategory(int?id){
Category?c?=?null;
try{
session?=?HibernateFilter.getSession(); //獲取Session對象
session.beginTransaction(); //開啟事物
//加載類別信息
c?=?(Category)session.load(Category.class?new?Integer(id));
session.getTransaction().commit(); //提交事物
}catch(Exception?e){
e.printStackTrace(); //打印異常信息
session.getTransaction().rollback(); //回滾事物
}
return?c;
}
/**
?*?查詢所有類別
?*?@return?List
?*/
public?List?findAllCategory(){
L
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\Databa
?????文件????????4635??2009-08-26?22:15??企業門戶網站\Databa
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\MedicineManager\
?????文件????????2404??2009-08-26?22:19??企業門戶網站\MedicineManager\.classpath
?????文件?????????318??2009-09-02?22:02??企業門戶網站\MedicineManager\.myme
?????文件??????????66??2009-08-26?22:19??企業門戶網站\MedicineManager\.myumldata
?????文件????????1421??2009-08-26?22:19??企業門戶網站\MedicineManager\.project
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\MedicineManager\.settings\
?????文件?????????406??2009-08-26?22:19??企業門戶網站\MedicineManager\.settings\.jsdtscope
?????文件?????????120??2009-08-26?22:19??企業門戶網站\MedicineManager\.settings\com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs
?????文件??????????49??2009-08-26?22:19??企業門戶網站\MedicineManager\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2009-08-26?22:19??企業門戶網站\MedicineManager\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件?????????425??2009-08-26?22:19??企業門戶網站\MedicineManager\.settings\org.eclipse.wst.validation.prefs
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\MedicineManager\src\
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\MedicineManager\src\com\
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\MedicineManager\src\com\lyq\
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\MedicineManager\src\com\lyq\dao\
?????文件????????1911??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\dao\CategoryDao.java
?????文件????????2131??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\dao\MedicineDao.java
?????文件????????1910??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\dao\SellDao.java
?????文件????????4479??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\dao\SupperDao.java
?????文件????????3966??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\dao\UserDao.java
?????目錄???????????0??2018-01-19?13:38??企業門戶網站\MedicineManager\src\com\lyq\persistence\
?????文件?????????701??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\persistence\Category.hbm.xm
?????文件????????1222??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\persistence\Category.java
?????文件?????????857??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\persistence\Medicine.hbm.xm
?????文件????????1928??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\persistence\Medicine.java
?????文件?????????814??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\persistence\SellDetail.hbm.xm
?????文件????????1459??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\persistence\SellDetail.java
?????文件?????????795??2009-08-26?22:19??企業門戶網站\MedicineManager\src\com\lyq\persistence\SellSeq.java
............此處省略138個文件信息
- 上一篇:大作業_記事本代碼
- 下一篇:企業管理系統--JSP
評論
共有 條評論