日期:2014-05-20  浏览次数:20671 次

Hibernate配置文件中myeclipse.connection.profile参数是配置什么的?
如下是配置文件,我不理解<property name="myeclipse.connection.profile">ora20</property>这行是配置什么的?请高手赐教!

<?xml version="1.0"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
<session-factory>
<property name="show_sql">true</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.url">jdbc:oracle:thin:@192.168.0.23:1521:tarena</property>
<property name="connection.username">root</property>
<property name="connection.password">123</property>
<property name="connection.isolation">2</property>
<property name="hbm2ddl.auto">create</property>
<property name="current_session_context_class">thread</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="myeclipse.connection.profile">ora20</property>
<mapping resource="set/Cart.hbm.xml" />
</session-factory>
</hibernate-configuration>

------解决方案--------------------
不知道,等人回答。
------解决方案--------------------
应该是连接的名字
<!--连接名字-->
<property name="myeclipse.connection.profile">JDBC</property>

------解决方案--------------------
不清楚,把这句删了,程序好像不受影响!