Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' encoding='utf-8'?>
- <!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD//EN"
- "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
- <hibernate-configuration>
- <session-factory>
- <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
- <property name="connection.url">jdbc:mysql://localhost:3306/shop</property>
- <property name="hibernate.connection.username">user</property>
- <property name="hibernate.connection.password">user1325user</property>
- <property name="hibernate.current_session_context_class">thread</property>
- <!-- Print executed SQL to stdout -->
- <property name="show_sql">false</property>
- <!-- Drop and re-create all database on startup -->
- <property name="hibernate.hbm2ddl.auto">update</property>
- <mapping class="entities.Book"/>
- <mapping class="entities.Stationery"/>
- <!-- DB schema will be updated if needed -->
- </session-factory>
- </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement