问题描述
任何在 Android ('gPhone') 上工作的人都知道或知道我可以找到一个好的 ORM 工具的地方吗?代码是Java编写的,数据库是SQLite.我想找到一个工具,它给出了对象定义,可以自动生成表和 CRUD 函数(那太棒了),或者,除此之外,一个可以获取表定义、对象定义的工具,并自动生成 CRUD 功能.问题是所有这些都必须在 Android 框架内发生,该框架在数据库访问的工作方式方面有自己的约定.
我想我会在这里添加我的 0.02 美元关于我的 ORMLite包.
它是 Hibernate 的轻量级替代品,并使用原生 Android 操作系统数据库调用来支持 Android 上的 SQLite.它还支持在其他体系结构上使用 JDBC 的许多其他数据库类型.我们有一个 Android 邮件列表,用于解决 ORMLite 问题.>
Anyone working on the Android ('gPhone') have or know of a place where I can find a good ORM tool for it? The code is written in Java, and the database is SQLite. What I would like to find is a tool that given the object definition, can auto-generate the tables and the CRUD functions (that would be awesome), or, barring that, a tool that can take the table definition, the object definition, and auto-generate the CRUD functionality. The rub is that all of this must happen within the Android framework, which has its own conventions as to how database access works.
Thought I'd just add my $0.02 here about my ORMLite package.
It is a lightweight replacement to Hibernate and uses native Android OS database calls to support SQLite on Android. It also supports many other database types using JDBC on other architectures. We have an Android mailing list for ORMLite questions.
这篇关于Android 开发有什么好的 ORM 工具吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!