root / trunk / src / java / hibernate.cfg.xml @ 9
History | View | Annotate | Download (964 Bytes)
1 | 9 | andrej.cim | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
||
3 | <hibernate-configuration>
|
||
4 | <session-factory>
|
||
5 | <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> |
||
6 | <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> |
||
7 | <property name="hibernate.connection.url">jdbc:mysql://localhost/lidar</property> |
||
8 | <property name="hibernate.connection.username">root</property> |
||
9 | <property name="hibernate.connection.password">mwd40</property> |
||
10 | <!-- Enable Hibernate's automatic session context management -->
|
||
11 | <property name="current_session_context_class">thread</property> |
||
12 | |||
13 | <!--<mapping resource="hibernate.hbm.xml"/>-->
|
||
14 | <mapping class="org.lidar.db.Client"/> |
||
15 | <mapping class="org.lidar.db.Log"/> |
||
16 | </session-factory>
|
||
17 | </hibernate-configuration> |