2014-09-13 71 views
1
<?xml version="1.0" encoding="UTF-8"?> 

<hibernate-configuration> 
<session-factory> 


<property name="hibernate dialect">org.hibernate.dialect.Oracle10gDialect</property> 
<property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property> 
<property name= "hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> 
<property name="hibernate.connection.username">System</property> 
<property name="hibernate.connection.password"> admin</property> 



<mapping resource="OrderEntry.hbm.xml"/> 

</session-factory> 
</hibernate-configuration> 

回答

1

添加DOCTYPE在XML XML版本後

<!DOCTYPE hibernate-configuration PUBLIC 
     "-//Hibernate/Hibernate Configuration DTD 3.0//EN" 
     "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> 
相關問題