HSQLDB数据库服务器的Hibernate配置文件

HSQLDB数据库服务器的Hibernate配置文件,hibernate,web-services,configuration,hsqldb,configuration-files,Hibernate,Web Services,Configuration,Hsqldb,Configuration Files,我是hibernate编程新手,不知道如何为HSQLDB数据库服务器编写hibernate配置文件。服务器位于本地主机上 用户名是:michael 密码是:jane$%12# 试试这个: <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hiberna

我是hibernate编程新手,不知道如何为HSQLDB数据库服务器编写hibernate配置文件。服务器位于本地主机上

  • 用户名是:michael
  • 密码是:jane$%12#
试试这个:

<?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>
    <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
    <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
    <property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost/</property>
    <property name="hibernate.connection.username">michael</property>
    <property name="hibernate.connection.password">jane$%12#</property>    
    <property name="show_sql">true</property>
    <property name="current_session_context_class">thread</property>
    <mapping resource="yourclassname.hbm.xml"/>
  </session-factory>
</hibernate-configuration>

org.hibernate.dialogue.hsql方言
org.hsqldb.jdbcDriver
jdbc:hsqldb:hsql://localhost/
迈克尔
简$%12#
真的
线
试试这个:

<?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>
    <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
    <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
    <property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost/</property>
    <property name="hibernate.connection.username">michael</property>
    <property name="hibernate.connection.password">jane$%12#</property>    
    <property name="show_sql">true</property>
    <property name="current_session_context_class">thread</property>
    <mapping resource="yourclassname.hbm.xml"/>
  </session-factory>
</hibernate-configuration>

org.hibernate.dialogue.hsql方言
org.hsqldb.jdbcDriver
jdbc:hsqldb:hsql://localhost/
迈克尔
简$%12#
真的
线
看看试试这个看看试试这个