Hibernate配置文件,省的到处找了
生活随笔
收集整理的這篇文章主要介紹了
Hibernate配置文件,省的到处找了
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC"-//Hibernate/Hibernate Configuration DTD 3.0//EN""http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration><session-factory><!-- Database connection settings --><property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property><property name="connection.url">jdbc:oracle:thin:@localhost:1521:SHOP</property><property name="connection.username">scott</property><property name="connection.password">tiger</property><!-- JDBC connection pool (use the built-in) --><property name="connection.pool_size">1</property><!-- SQL dialect --><property name="dialect">org.hibernate.dialect.H2Dialect</property><!-- Disable the second-level cache --><property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property><!-- Echo all executed SQL to stdout --><property name="show_sql">true</property><!-- Drop and re-create the database schema on startup --><property name="hbm2ddl.auto">create</property><!-- Names the annotated entity class --><mapping class="org.hibernate.tutorial.annotations.Event"/></session-factory>
</hibernate-configuration>
轉載于:https://blog.51cto.com/drh0534/1329896
總結
以上是生活随笔為你收集整理的Hibernate配置文件,省的到处找了的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WARNING: APP_PLATFOR
- 下一篇: 关于MySQL count(distin