Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error on line 16 of document : The element type "session-factory" must be terminated by the matching end-tag "</session-factory>".
- Nested exception: The element type "session-factory" must be terminated by the matching end-tag "</session-factory>".
- at org.dom4j.io.SAXReader.read(SAXReader.java:482)
- <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"/>
- <session-factory>
- ...
- </session-factory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement