hybernate cfg
This commit is contained in:
25
src/main/resources/hibernate.cfg.xml
Normal file
25
src/main/resources/hibernate.cfg.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<!DOCTYPE hibernate-configuration PUBLIC
|
||||
"-//Hibernate/Hibernate Configuration DTD//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
||||
|
||||
<hibernate-configuration>
|
||||
|
||||
<!-- a SessionFactory instance listed as /jndi/name -->
|
||||
<session-factory>
|
||||
<property name="hibernate.connection.username">root</property>
|
||||
|
||||
<property name="hibernate.connection.password">Admin123</property>
|
||||
|
||||
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/ICT</property>
|
||||
|
||||
<property name="hibernate.connection.driver_class">com.mysql.cj.jdbc.Driver</property>
|
||||
|
||||
<property name="hibernate.show_sql">false</property>
|
||||
|
||||
<property name="dialect">org.hibernate.dialect.MySQL5Dialect</property>
|
||||
|
||||
|
||||
</session-factory>
|
||||
|
||||
</hibernate-configuration>
|
||||
Reference in New Issue
Block a user