Created
August 4, 2015 13:18
-
-
Save yusufcakmak/9adbfaa46f511694cec9 to your computer and use it in GitHub Desktop.
HibernateCRUDExample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.url">jdbc:mysql://localhost:3306/book</property> | |
<property name="connection.username">root</property> | |
<property name="connection.password"></property> | |
<property name="connection.driver_class">com.mysql.jdbc.Driver</property> | |
<property name="dialect">org.hibernate.dialect.MySQLDialect</property> | |
<property name="show_sql">true</property> | |
<property name="format_sql">true</property> | |
<property name="hbm2ddl.auto">update</property> | |
<property name="connection.pool_size">1</property> | |
<property name="current_session_context_class">thread</property> | |
<mapping class="co.mobiwise.hibernate.model.Book" /> | |
</session-factory> | |
</hibernate-configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment