Skip to content

Instantly share code, notes, and snippets.

@yusufcakmak
Last active January 13, 2026 06:21
Show Gist options
  • Select an option

  • Save yusufcakmak/aefef12a7fe4518043ec to your computer and use it in GitHub Desktop.

Select an option

Save yusufcakmak/aefef12a7fe4518043ec to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/Book</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<property name="hibernate.connection.pool_size">1</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<mapping resource="book.hbm.xml" />
</session-factory>
</hibernate-configuration>
@thundergokhan
Copy link

Thank you!!!

@hanmantholgir
Copy link

thanks

@hans1anda
Copy link

Thanks!

@Tulat2002
Copy link

thanks

@imteyazimam17
Copy link

thanks

@LINHTRAN9x
Copy link

Thanks a lot!

@adityaraut649
Copy link

  <!-- Database Connection Settings-->
  <property name="hibernate.connection.driver_class">{BLANK}</property>
  <property name="hibernate.connection.url">{BLANK}</property>
  <property name="hibernate.connection.username">{BLANK}</property>
  <property name="hibernate.connection.password">{BLANK}</property>

   <!-- Hibernate Settings-->
   <property name="hibernate.dialect">{BLANK}</property>
   <property name="hibernate-show_sql">true</property>
   <property name="hibernate.format_sql">true</property>


   <!-- Mapping Entity-->
   </mapping class="{BLANK}">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment