dsfsfs 发表于 2016-11-30 06:50:26

解决 hibernate sqlite 无法保存问题

  错误:
  2013-09-25 17:21:54,562 WARN  - SQL Error: 0, SQLState: null
2013-09-25 17:21:54,562 ERROR - NYI
  org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL ; SQL state ; error code ; NYI; nested exception is org.hibernate.exception.GenericJDBCException: NYI
......................
  Caused by: org.hibernate.exception.GenericJDBCException: NYI
  ..........................
  Caused by: java.sql.SQLException: NYI
  当时参照 http://code.google.com/p/hibernate-sqlite/ 做的
  不同在于,对方用的hibernate 版本为3.2,我用的是 hibernate4.1 
  将驱动包替换为 sqlite-jdbc 3.7.15-M1 即可解决问题
  <dependency>
            <groupId>org.xerial</groupId>
            <artifactId>sqlite-jdbc</artifactId>
            <version>3.7.15-M1</version>
        </dependency>
页: [1]
查看完整版本: 解决 hibernate sqlite 无法保存问题