Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <session-factory>
- <!-- Database connection settings -->
- <property name="connection.driver_class">org.postgresql.Driver</property>
- <property name="connection.url">jdbc:postgresql://localhost:5432/hibernatedb</property>
- <property name="connection.username">postgres</property>
- <property name="connection.password"/>shaher</property>
- <!-- JDBC connection pool (use the built-in) -->
- <property name="connection.pool_size">1</property>
- <!-- SQL dialect -->
- <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
- <!-- Disable the second-level cache -->
- <property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property>
- <!-- Echo all executed SQL to stdout -->
- <property name="show_sql">true</property>
- <!-- Drop and re-create the database schema on startup -->
- <property name="hbm2ddl.auto">create</property>
- <mapping class="org.shaher.hiber.dto.UserDetails"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement