Does Hibernate Fully Support SQLite

前端 未结 4 1240
日久生厌
日久生厌 2020-11-29 21:22

Jboss Hibernate doesn\'t say anything about the support for SQLite -

https://community.jboss.org/wiki/SupportedDatabases2

And same is mentioned in below SO:

4条回答
  •  青春惊慌失措
    2020-11-29 21:45

    If you need to use SQLite with Hibernate for whatever reason then you need a custom dialect. It looks like there are a couple of implementations kicking around on the web.

    I tried this one: https://github.com/gwenn/sqlite-dialect which worked for me with Hibernate 3 (I believe that it needs some updates for Hibernate 4). Note that you'll have to compile the code yourself and then set the hibernate.dialect configuration property to be org.hibernate.dialect.SQLiteDialect.

    Other implementations that I found: http://code.google.com/p/hibernate-sqlite/ and https://gist.github.com/virasak/54436.

提交回复
热议问题