m2u-upass-core / resources / com / ib / hibernate / configuration / hibernate.cfg.xml @ 13:26c42a47ee09
History | View | Annotate | Download (2.35 KB)
1 | 0:02300db8682b | hadi | <?xml version='1.0' encoding='utf-8'?>
|
---|---|---|---|
2 | <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
||
3 | "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
||
4 | |||
5 | <hibernate-configuration>
|
||
6 | <session-factory>
|
||
7 | <!-- Database connection settings -->
|
||
8 | |||
9 | <!--
|
||
10 | <property name="connection.url">jdbc:sqlserver://10.6.6.21:1433;databaseName=agroib_db</property>
|
||
11 | <property name="hibernate.connection.username">agroib_user</property>
|
||
12 | <property name="hibernate.connection.password">P@$$w0rd</property>
|
||
13 | -->
|
||
14 | |||
15 | <property name="connection.url">jdbc:sqlserver://localhost:1433;databaseName=agroib_db</property> |
||
16 | <property name="hibernate.connection.username">agroib_user</property> |
||
17 | <property name="hibernate.connection.password">password</property> |
||
18 | |||
19 | <!-- Database connection settings -->
|
||
20 | <property name="connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property> |
||
21 | <!-- SQL dialect -->
|
||
22 | <property name="dialect">org.hibernate.dialect.SQLServerDialect</property> |
||
23 | |||
24 | <!-- Enable Hibernate's automatic session context management -->
|
||
25 | <property name="current_session_context_class">thread</property> |
||
26 | |||
27 | <!-- Disable the second-level cache -->
|
||
28 | <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
||
29 | |||
30 | <!-- Echo all executed SQL to stdout -->
|
||
31 | <property name="show_sql">true</property> |
||
32 | <property name="format_sql">true</property> |
||
33 | |||
34 | <property name="hibernate.hbm2ddl.auto">none</property> |
||
35 | |||
36 | <!-- Mapping files -->
|
||
37 | <mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
||
38 | <mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
||
39 | <mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
||
40 | <mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
||
41 | <mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
||
42 | <mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
||
43 | <mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
||
44 | <mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
||
45 | <mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
||
46 | <mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
||
47 | <mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
||
48 | </session-factory>
|
||
49 | </hibernate-configuration> |