Guest User

hibernate.xml

a guest
Sep 20th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.38 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE hibernate-configuration PUBLIC
  3. "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  4. "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
  5. <hibernate-configuration>
  6.  <session-factory>
  7.   <!-- Database connection settings -->
  8.   <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
  9.   <property name="connection.url">jdbc:mysql://<<<<host>>>>/jayan</property>
  10.   <property name="connection.username">jayan</property>
  11.   <property name="connection.password">jayan</property>
  12.    
  13.   <!-- JDBC connection pool (use the built-in) -->
  14.   <property name="connection.pool_size">1</property>
  15.    
  16.   <!-- SQL dialect -->
  17.   <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
  18.    
  19.   <!-- Enable Hibernate's automatic session context management -->
  20.   <property name="current_session_context_class">thread</property>
  21.  
  22.   <!-- Disable the second-level cache -->
  23.   <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
  24.    
  25.   <!-- Echo all executed SQL to stdout -->
  26.   <property name="show_sql">true</property>
  27.    
  28.   <!-- Drop and re-create the database schema on startup -->
  29.   <property name="hbm2ddl.auto">update</property>
  30.    
  31.   <!-- Mapping files -->
  32.   <mapping resource="user.xml"/>
  33.   <mapping resource="task.xml"/>
  34.    
  35.  </session-factory>
  36. </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment