-
Notifications
You must be signed in to change notification settings - Fork 0
/
hibernate.cfg.xml
25 lines (21 loc) · 1.25 KB
/
hibernate.cfg.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- SQL Dialect -->
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Database Connection Settings -->
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://127.0.0.1/8/task_manager</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">amma</property>
<property name="show_sql">true</property>
<!-- Specifying Session Context -->
<property name="hibernate.current_session_context_class">org.hibernate.context.internal.ThreadLocalSessionContext</property>
<!-- Mapping With Model Class Containing Annotations -->
<mapping class="edu.amrita.cses3.java.project.taskmanager.model.UserModel" />
<mapping class="edu.amrita.cses3.java.project.taskmanager.model.ProjectModel" />
</session-factory>
</hibernate-configuration>