一个简单的Android ORM持久层框架:ORMDroid

jopen 9年前

ORMDroid是一个用于Android应用的简单ORM持久层框架,提供一个易于使用,几乎零配置的方式来处理模型持久化,而无需处理与Android内置的数据库接口。

ORMDroid is:

  • Small - ~20k, target of no more than 30k.
  • Simple - No excessive features or support for platforms other than Android.
  • Flexible - Allowing you to configure what you need to, but at the same time...
  • Automatic - ... sensible defaults for everything.
import static com.roscopeco.ormdroid.Query.eql;    // ... later    Person person = Entity.query(Person.class).where(eql("id", id)).execute();  p.telephone = "555-1234";  p.save();

项目主页:http://www.open-open.com/lib/view/home/1423061262592