Android 开发有什么好的 ORM 工具吗?

编程入门 行业动态 更新时间:2024-10-25 13:28:11
本文介绍了Android 开发有什么好的 ORM 工具吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

任何在 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 工具吗?

本文发布于:2023-11-23 05:08:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1620194.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有什么   工具   Android   ORM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!