ITeye博客

Hibernate的基本配置

ytzhsh · 2006-04-28 16:02 · Markdown

<hibernate-configuration> <session-factory> <!-- local connection properties --> <property name="hibernate.connection.url"> jdbc:mysql://localhost/msgbook?useUnicode=true&characterEncoding=utf-8 </property> <property name="hibernate.connection.driver_class"> org.gjt.mm.mysql.Driver </property> <property name="hibernate.connection.username">root</property> <property name="hibernate.connection.password" /> <!-- property name="hibernate.connection.pool_size"></property --> <!-- dialect for MySQL --> <property name="dialect"> org.hibernate.dialect.MySQLDialect </property> <property name="hibernate.show_sql">false</property> <property name="hibernate.transaction.factory_class"> org.hibernate.transaction.JDBCTransactionFactory </property> <mapping resource="UserInfo.hbm.xml" /> <mapping resource="MsgbookInfo.hbm.xml" /> </session-factory> </hibernate-configuration>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。