質問

Been looking for an ORM for Android. Personally I think its a setback these days for an SDK not to have an ORM. In this aspect iOS SKD is ahead.

I came across ORMLite, which looks quite simple to use.

My concern is compatibility w/ various SDK levels in Android (have a requirement to stay reverse compatible down to 2.2 SDK LEVEL 9)

Any other ORMs I should consider?

Any pitfalls I should watch out for?

役に立ちましたか?

解決

I would suggest ORMlite its open source freeware.

It has good developer support & many application running on ORMlite.

another is greenDao library. Its very easy to use. Here is a comparison

他のヒント

ORMLite is great. You are able to do necessary database operations without writing sql. ORMLite works with older android versions such as gingerbread so I wouldn't be concerned about that.

This section of the documentation will help you get going, or if you prefer a video tutorial, this one is very helpful: https://www.youtube.com/watch?v=beb-n2yq0kM

The only drawback to it that I can think of is that it's a small community so the support and documentation is a bit sparse at times. That said, the creator (Gray) is active on Stack Overflow and he is likely to be around to help if you have more advanced issues.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top