<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                                         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
	<session-factory name="yiduSessionFactory">
		<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
		<property name="hibernate.connection.password">postgres</property>
		<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/yidu</property>
		<property name="hibernate.connection.username">postgres</property>
		<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
		<property name="hibernate.format_sql">true</property>
		<property name="show_sql">true</property>

		<mapping class="org.yidu.novel.entity.TArticle" resource="hibernate/TArticle.hbm.xml" />
		<mapping class="org.yidu.novel.entity.TBookcase" resource="hibernate/TBookcase.hbm.xml" />
		<mapping class="org.yidu.novel.entity.TChapter" resource="hibernate/TChapter.hbm.xml" />
		<mapping class="org.yidu.novel.entity.TSystemBlock" resource="hibernate/TSystemBlock.hbm.xml" />
		<mapping class="org.yidu.novel.entity.TUser" resource="hibernate/TUser.hbm.xml" />
		<mapping class="org.yidu.novel.entity.TReview" resource="hibernate/TReview.hbm.xml" />
		<mapping class="org.yidu.novel.entity.TMessage" resource="hibernate/TMessage.hbm.xml" />
	</session-factory>
</hibernate-configuration>
