Skip to content

Commit 6dc854d

Browse files
committed
Addition of hibernate configuration file.
1 parent 16491ea commit 6dc854d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/hibernate.cfg.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE hibernate-configuration PUBLIC
2+
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
3+
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
4+
5+
<hibernate-configuration>
6+
7+
<session-factory>
8+
9+
<!-- JDBC Database connection settings -->
10+
<property name="connection.driver_class">com.mysql.cj.jdbc.Driver</property>
11+
<property name="connection.url">jdbc:mysql://localhost:3306/login</property>
12+
<property name="connection.username">root</property>
13+
<property name="connection.password"></property>
14+
15+
<!-- JDBC connection pool settings ... using built-in test pool -->
16+
<property name="connection.pool_size">1</property>
17+
18+
<!-- Select our SQL dialect -->
19+
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
20+
21+
<!-- Echo the SQL to stdout -->
22+
<property name="show_sql">true</property>
23+
24+
<!-- Set the current session context -->
25+
<property name="current_session_context_class">thread</property>
26+
27+
</session-factory>
28+
29+
</hibernate-configuration>

0 commit comments

Comments
 (0)