使用Hibernate开发租房系统(4)
hibernate.cfg.xml:
<session-factory>
<!-- 数据库方言 -->
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<!-- 驱动 -->
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<!-- 链接地址 -->
<property name="connection.url">jdbc:oracle:thin:@127.0.0.1:1521:orcl</property>
<!-- 账号 -->
<property name="connection.username">xxx</property>
<!-- 密码 -->
<property name="connection.password">xxx</property>
<property name="show_sql">true</property>
<mapping resource="com/zb/entity/Users.hbm.xml"/>
</session-factory>