Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hibernate.cfg.xml
- <!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>
- <!-- JDBC Database connection settings -->
- <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
- <property name="connection.url">jdbc:mysql://localhost:3306/users?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC</property>
- <property name="connection.username">root</property>
- <property name="connection.password">pokemon</property>
- <!-- JDBC connection pool settings ... using built-in test pool -->
- <property name="connection.pool_size">1</property>
- <!-- Select our SQL dialect -->
- <property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
- <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
- <!-- Echo the SQL to stdout -->
- <property name="show_sql">true</property>
- <property name="hbmdl.auto">create-drop</property>
- <!-- Set the current session context -->
- <property name="current_session_context_class">thread</property>
- <mapping class="com.mycompany.hibernate_brain.Users" />
- </session-factory>
- </hibernate-configuration>
- PS.Nice pasword :D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement