http://code.google.com/p/hibernate-sqlite/这里有详细的配置方案

解决方案 »

  1.   


    朋友谢谢你,我想要的是hibernate和sqlite的web项目的配置,但是你给的网站好像没。。
      

  2.   


    <?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="show_sql">true</property>
    <property name="format_sql">true</property>
    <property name="dialect">dialect.SQLiteDialect</property>
    <property name="connection.driver_class">org.sqlite.JDBC</property>
    <property name="connection.url">jdbc:sqlite:1.db</property>
    <property name="connection.username"></property>
    <property name="connection.password"></property> <mapping resource="User.hbm.xml"/>
    </session-factory>
    </hibernate-configuration>这个是连接数据库的