]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
a22a763c53e92a5cfbf4ccb5ebbebdbd20cf7f48
[tools/siman.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE hibernate-configuration PUBLIC
3           "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
4           "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
5
6 <hibernate-configuration>
7
8   <session-factory>
9     <!-- Database connection settings -->
10     <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
11     <property name="connection.url">jdbc:mysql://localhost/simer</property>
12     <property name="connection.username">simer</property>
13     <property name="connection.password">admin</property>
14     
15     <!-- JDBC connection pool (use the built-in) -->
16     <property name="connection.pool_size">1</property>    
17     <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
18     
19     <!-- SQL dialect -->
20     <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
21
22     <!-- Enable Hibernate's automatic session context management -->
23     <property name="current_session_context_class">thread</property>
24     
25     <!-- Echo all executed SQL statements to stdout -->
26     <property name="hibernate.show_sql">@hibernate.show_sql@</property>
27
28     <!-- mapping files -->
29     <mapping resource="org/splat/kernel/Persistent.hbm.xml" />
30     <mapping resource="org/splat/kernel/Any.hbm.xml" />
31     <mapping resource="org/splat/kernel/Entity.hbm.xml" />
32     <mapping resource="org/splat/kernel/Attribute.hbm.xml" />
33     <mapping resource="org/splat/kernel/Relation.hbm.xml" />
34     <mapping resource="org/splat/kernel/IDPool.hbm.xml" />
35     <mapping resource="org/splat/kernel/TextAttribute.hbm.xml" />
36     <mapping resource="org/splat/kernel/Text.hbm.xml" />
37     <mapping resource="org/splat/kernel/User.hbm.xml" />
38
39     <mapping resource="org/splat/som/ProjectElement.hbm.xml" />
40     <mapping resource="org/splat/som/Study.hbm.xml" />
41     <mapping resource="org/splat/som/Scenario.hbm.xml" />
42     <mapping resource="org/splat/som/Attributes.hbm.xml" />
43     <mapping resource="org/splat/som/Relations.hbm.xml" />
44     <mapping resource="org/splat/som/File.hbm.xml" />
45     <mapping resource="org/splat/som/Document.hbm.xml" />
46     <mapping resource="org/splat/som/Publication.hbm.xml" />
47     <mapping resource="org/splat/som/ValidationCycle.hbm.xml" />
48     <mapping resource="org/splat/som/Timestamp.hbm.xml" />
49     <mapping resource="org/splat/som/SimulationContext.hbm.xml" />
50     <mapping resource="org/splat/som/KnowledgeElement.hbm.xml" />
51     <mapping resource="org/splat/som/IDBuilder.hbm.xml" />
52
53   </session-factory>
54   
55 </hibernate-configuration>