hybernate cfg

This commit is contained in:
2023-04-25 15:23:26 +02:00
parent 0baeb4cdb9
commit 6874ebd4c5
3 changed files with 49 additions and 15 deletions

View 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>