MatthijsFontys

hibernate native configuration backup

Apr 7th, 2020
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.42 KB | None | 0 0
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <!--
  3.  ~ Hibernate, Relational Persistence for Idiomatic Java
  4.  ~
  5.  ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
  6.  ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
  7.  -->
  8. <!DOCTYPE hibernate-configuration PUBLIC
  9.        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  10.        "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
  11.  
  12. <hibernate-configuration>
  13.  
  14.     <session-factory>
  15.  
  16.         <property name="hibernate.id.new_generator_mapping">false</property>
  17.         <!-- Database connection settings -->
  18.         <property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
  19.         <property name="hibernate.connection.url">jdbc:sqlserver://DESKTOP-AAOK8UK;databaseName=tacodel;integratedSecurity=true</property>
  20.  
  21.         <!-- JDBC connection pool (use the built-in) -->
  22.         <property name="hibernate.connection.pool_size">100</property>
  23.  
  24.         <!-- SQL dialect -->
  25.         <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
  26.  
  27.         <!-- Echo all executed SQL to stdout -->
  28.         <property name="hibernate.show_sql">true</property>
  29.  
  30.         <!-- Entity classes -->
  31.         <mapping class="nl.fhict.i400433.tacodel.test.Person"/>
  32.         <mapping class="nl.fhict.i400433.tacodel.test.Item"/>
  33.  
  34.  
  35.     </session-factory>
  36.  
  37. </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment