Danyas playground
1System.out.println("Hello World");
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>6.3.1.Final</version>
</dependency>
123456789101112131415161718192021<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration SYSTEM "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- JDBC set up--> <property name="hibernate.connection.driver_class">com.mysql.cj.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/testDatabase</property> <property name="hibernate.connection.username">yourUsername</property> <property name="hibernate.connection.password">yourPassword</property> <!-- Dialect setup --> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <!-- SQL Display and Formatting Settings --> <property name="show_sql">true</property> <property name="format_sql">true</property> <property name="hibernate.current_session_context_class">thread</property> </session-factory> </hibernate-configuration>
Everything was clear?
Thanks for your feedback!
SectionΒ 5. ChapterΒ 7
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.18
Danyas playground
Swipe to show menu
1System.out.println("Hello World");
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>6.3.1.Final</version>
</dependency>
123456789101112131415161718192021<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration SYSTEM "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- JDBC set up--> <property name="hibernate.connection.driver_class">com.mysql.cj.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/testDatabase</property> <property name="hibernate.connection.username">yourUsername</property> <property name="hibernate.connection.password">yourPassword</property> <!-- Dialect setup --> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <!-- SQL Display and Formatting Settings --> <property name="show_sql">true</property> <property name="format_sql">true</property> <property name="hibernate.current_session_context_class">thread</property> </session-factory> </hibernate-configuration>
Everything was clear?
Thanks for your feedback!
SectionΒ 5. ChapterΒ 7