Hibernate配置hsqldb

hibernate.cfg.xml

        <property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
        <property name="connection.url">jdbc:hsqldb:hsql://localhost</property>


        <property name="connection.username">sa</property>
        <property name="connection.password"/>

        <property name="dialect">org.hibernate.dialect.HSQLDialect</property>

        <property name="show_sql">true</property>
        <property name="format_sql">true</property>

        <property name="hbm2ddl.auto">update</property>
        <property name="current_session_context_class">thread</property>

hsqldb数据库的Server要启动

你可能感兴趣的:(没人看系列)