Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android application and myBatis

I'd like to use myBatis (iBatis 3) in an Android application. Has anyone tried such a thing or know of any resources for this?

like image 997
Scotty Avatar asked Dec 27 '10 14:12

Scotty


2 Answers

aBatis is a data mapper framework available for Android
 that couples objects with stored procedures or
 SQL statements using an XML descriptor or annotations.
aBatis is like an Android equivalent of iBatis.

---simple & light ORM library like iBatis for Web development
--carrying ibatis's feature
--easy-to-use as iBatis
--shorten a development period
--independent of development phase
--Android sdk1.6 and up

http://sonixlabs.com/abatis/

like image 147
androidwonx Avatar answered Oct 07 '22 14:10

androidwonx


The first thing to do in order to do that is to compile myBatis for Dalvik. But it's likely to be too heavy for a device like a smartphone.

If you are looking for a lightweight persistence layer, you could look at Ammentos:

http://www.ammentos.org/

Same trouble: you will need to compile it for Dalvik.

Existing ORMs for Android:

http://ormlite.sourceforge.net/sqlite_java_android_orm.html

https://www.activeandroid.com/

like image 36
Alexis Dufrenoy Avatar answered Oct 07 '22 14:10

Alexis Dufrenoy