什么是最简单的支持 Sqlite 的 Java ORM?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2974031/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 23:46:47  来源:igfitidea点击:

What is the simplest Java ORM supporting Sqlite?

javasqliteorm

提问by htf

What is the ORM that can bound to a Java application in the least possible time, given its performance is not important?

鉴于其性能并不重要,可以在尽可能短的时间内绑定到 Java 应用程序的 ORM 是什么?

采纳答案by Gray

This is self-marketing but my ORMLite packagehas native support for Sqlite -- as well as MySQL, Postgres, Microsoft SQL Server, H2, Derby, and HSQLDB. It uses annotations to configure the persisted classes and is simple to get up to speed.

这是自我营销,但我的ORMLite 包原生支持 Sqlite —— 以及 MySQL、Postgres、Microsoft SQL Server、H2、Derby 和 HSQLDB。它使用注释来配置持久化类,并且很容易上手。

Here is the online docs on how to get started with the package:

以下是有关如何开始使用该软件包的在线文档:

I have experience with the org.xerial.sqlite-jdbcJDBC driver which seems to work very well.

我有使用org.xerial.sqlite-jdbcJDBC 驱动程序的经验,它似乎工作得很好。

回答by Lukas Eder

SQLite is fully supported by jOOQ.

jOOQ完全支持 SQLite 。

回答by Jeff Miller

Sormulaworks with any relational database since it creates standard SQL. Sqlite test configuration and jdbc driver are included in the test suites.

Sormula可用于任何关系数据库,因为它创建标准 SQL。Sqlite 测试配置和 jdbc 驱动程序包含在测试套件中。

回答by Timo Westk?mper

Here is a demo projectfor Hibernate SQLite integration. EclipseLInk JPAshould also work. EclipseLink is lighter than Hibernate, but Hibernate is better documented and more mature.

这是Hibernate SQLite 集成的演示项目EclipseLINk JPA也应该可以工作。EclipseLink 比 Hibernate 更轻量,但 Hibernate 有更好的文档和更成熟。

回答by ipolevoy

ActiveJDBC supports a number of databases, including SQLite3: http://javalite.io/activejdbc#supported-databases

ActiveJDBC 支持多种数据库,包括 SQLite3:http://javalite.io/activejdbc#supported-databases