---
title: "基于DWR、Hibernate、Spring实现的分页（二）"
author: "wikimo"
date: "2009-03-28T22:40:41Z"
tags: []
categories: ["编程语言"]
slug: "dwr-hibernate-spring"
draft: false
lastmod: "2010-01-21T20:01:28Z"
id: 356833
url: "https://wikimo.iteye.com/blog/356833"
---

继昨天的文章，发布下源码。

 

**代码说明：** (测试平台Tomcat6 、Oracle 10G XE、Mysql5.1、FireFox)

1.开发框架：Struts、Hibernate3、Spring及DWR框架

2.开发工具：Myeclipse6.5

3.数据库说明：Oracle 10G XE版或Mysql5.1  
（1）Hibernate数据库配置文件为hibernate-oralce.cfg.xml和hibernate-mysql.cfg.xml  
（2）默认的用户名密码为：Oracle为wiki，wiki  
Mysql为root，wiki  
（3）使用不同数据的方法：修改application-basic.xml文件，已加中文注释

4.db文件夹下为数据库可能用到的不同的SQL  
（1）courseid.sql、scoreid.sql、studentid.sql为Oracle可能用到的Sequence。  
（2）db.sql为可以导入mysql、Oracle生成数据库表的SQL，可能会报错，当关系不大。  
（3）oracle.sql为使用PL/SQL Developer工具导出的SQL  
（4）mysql.sql为使用Navivat 8 for MySQL工具导出的SQL

5.script文件夹下为JQuery库，控制页面按钮的Javascript脚本会用到。

6.src文件夹说明  
（1）org.wiki.student.dao存放用于进行数据持久化操作的DAO及接口  
（2）org.wiki.student.domain.models业务涉及到的领域模型，这里使用Hibernate工具生成，分别对象抽象模型及具体模型。  
（3）org.wiki.student.filter存放过滤器，处理中文问题  
（4）org.wiki.student.forms Struts用到的ActionForm  
（5）org.wiki.student.mapping.mysql Hibernate对应与Mysql数据库的模型映射文件  
（6）org.wiki.student.mapping.oracle Hibernate对应与Oracle数据库的模型映射文件  
（7）org.wiki.student.service业务逻辑具体实现类及接口  
（8）org.wiki.student.strurts.actions Struts涉及到的Action类  
（9）org.wiki.student.utils 封装分页信息的类  
（10）application-action.xml、application-basic.xml为Spring配置文件。