资源简介
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">
com.microsoft.sqlserver.jdbc.SQLServerDriver
</property>
<property name="connection.url">
jdbc:sqlserver://127.0.0.1:1433;databaseName=ssh2db
</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="connection.username">sa</property>
<property name="connection.password">sa</property>
<!-- C3P0 连接池的配置 -->
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<!-- 最小的连接数量 -->
<property name="hibernate.c3p0.min_size">5</property>
<!-- 最大的连接数量-->
<property name="hibernate.c3p0.max_size">10</property>
<!-- 连接的最大空闲时间,单位为秒 -->
<property name="hibernate.c3p0.timeout">3600</property>
<!-- 最大的Statement数目 -->
<property name="hibernate.c3p0.max_statements">50</property>
<!-- 每隔多长时间,检查连接池里的空闲连接 ,单位为秒-->
<property name="hibernate.c3p0.idle_test_period">120</property>
<!-- 连接池里面的连接用完,新建连接的数量 -->
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<property name="myeclipse.connection.profile">
sqlserverdriver
</property>
<mapping resource="com/vken/guestbook/model/Guestbook.hbm.xml" />
</session-factory>
</hibernate-configuration>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">
com.microsoft.sqlserver.jdbc.SQLServerDriver
</property>
<property name="connection.url">
jdbc:sqlserver://127.0.0.1:1433;databaseName=ssh2db
</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="connection.username">sa</property>
<property name="connection.password">sa</property>
<!-- C3P0 连接池的配置 -->
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<!-- 最小的连接数量 -->
<property name="hibernate.c3p0.min_size">5</property>
<!-- 最大的连接数量-->
<property name="hibernate.c3p0.max_size">10</property>
<!-- 连接的最大空闲时间,单位为秒 -->
<property name="hibernate.c3p0.timeout">3600</property>
<!-- 最大的Statement数目 -->
<property name="hibernate.c3p0.max_statements">50</property>
<!-- 每隔多长时间,检查连接池里的空闲连接 ,单位为秒-->
<property name="hibernate.c3p0.idle_test_period">120</property>
<!-- 连接池里面的连接用完,新建连接的数量 -->
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<property name="myeclipse.connection.profile">
sqlserverdriver
</property>
<mapping resource="com/vken/guestbook/model/Guestbook.hbm.xml" />
</session-factory>
</hibernate-configuration>
代码片段和文件信息
package com.vken.guestbook.dao;
import java.util.List;
import com.vken.guestbook.model.Guestbook;
public interface GuestbookDao {
public Guestbook findById(Integer id);
public List findAll();
public Guestbook save(Guestbook gb);
public void update(Guestbook gb);
public void delete(Integer id);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 887 2013-11-04 22:44 guestbookv2.0\.classpath
文件 313 2013-11-04 22:44 guestbookv2.0\.myme
文件 1756 2013-11-04 22:44 guestbookv2.0\.project
文件 500 2013-11-04 22:44 guestbookv2.0\.settings\.jsdtscope
文件 159 2013-11-04 22:44 guestbookv2.0\.settings\com.genuitec.eclipse.core.prefs
文件 1040 2013-11-04 22:44 guestbookv2.0\.settings\com.genuitec.eclipse.j2eedt.core.prefs
文件 113 2013-11-04 22:44 guestbookv2.0\.settings\org.eclipse.core.resources.prefs
文件 395 2013-11-04 22:44 guestbookv2.0\.settings\org.eclipse.jdt.core.prefs
文件 477 2013-11-04 22:44 guestbookv2.0\.settings\org.eclipse.wst.common.component
文件 252 2013-11-04 22:44 guestbookv2.0\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2013-11-04 22:44 guestbookv2.0\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2013-11-04 22:44 guestbookv2.0\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 39 2013-11-04 22:44 guestbookv2.0\WebRoot\me
文件 439 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\guestbook\dao\GuestbookDao.class
文件 2315 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\guestbook\dao\hibernate\GuestbookDaoHibernate.class
文件 1918 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\guestbook\model\Guestbook.class
文件 1418 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\guestbook\model\Guestbook.hbm.xm
文件 2463 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\guestbook\web\AddMessageServlet.class
文件 1635 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\guestbook\web\CharacterEncodingFilter.class
文件 1426 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\guestbook\web\GetMessagesServlet.class
文件 896 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\util\HibernateSessionFactoryUtil.class
文件 1088 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\com\vken\util\StringUtil.class
文件 1863 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\classes\hibernate.cfg.xm
文件 1335 2013-11-04 22:44 guestbookv2.0\WebRoot\WEB-INF\web.xm
文件 1733 2013-11-04 22:44 guestbookv2.0\WebRoot\addMessage.jsp
文件 440 2013-11-04 22:44 guestbookv2.0\WebRoot\addResult.jsp
文件 353 2013-11-04 22:44 guestbookv2.0\WebRoot\error404.htm
文件 395 2013-11-04 22:44 guestbookv2.0\WebRoot\error500.jsp
文件 236 2013-11-04 22:44 guestbookv2.0\WebRoot\fckeditor\editor\css\behaviors\disablehandles.htc
文件 822 2013-11-04 22:44 guestbookv2.0\WebRoot\fckeditor\editor\css\behaviors\showtableborders.htc
............此处省略521个文件信息
- 上一篇:mybatis多对多关系的实现
- 下一篇:使用struts2框架的统计图生成
评论
共有 条评论