1<?xml version = "1.0" encoding = "utf-8"?>
2<!DOCTYPE hibernate-configuration SYSTEM
3"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
4<hibernate-configuration>
5 <session-factory>
6
7 <property name = "hibernate.dialect">
8 org.hibernate.dialect.MySQLDialect
9 </property>
10
11 <property name = "hibernate.connection.driver_class">
12 com.mysql.jdbc.Driver
13 </property>
14
15 <!-- Assume test is the database name -->
16
17 <property name = "hibernate.connection.url">
18 jdbc:mysql://localhost/test
19 </property>
20
21 <property name = "hibernate.connection.username">
22 root
23 </property>
24
25 <property name = "hibernate.connection.password">
26 root123
27 </property>
28
29 <!-- List of XML mapping files -->
30 <mapping resource = "Employee.hbm.xml"/>
31
32 </session-factory>
33</hibernate-configuration>
1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE hibernate-configuration PUBLIC
3 "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
4 "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
5
6<hibernate-configuration>
7
8 <session-factory>
9 <property name="hbm2ddl.auto">update</property>
10 <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
11 <property name="connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
12 <property name="connection.username">system</property>
13 <property name="connection.password">oracle</property>
14 <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
15 <mapping resource="employee.hbm.xml"/>
16 </session-factory>
17
18</hibernate-configuration>
1<property name="connection.driver_class">com.mysql.cj.jdbc.Driver</property>