Orman - lightweight Java Object Relational Mapper for Android
ahmetalpbalkan.com
ahmetalpbalkan.com
Certainly more elegant than the SQLite API. Wonder how ORMAN compares though.
yes it is pretty much similar to OrmLite. I haven't tried OrmLite but now looking at the code examples0.
Orman is much easier to use and less boilerplate code. With OrmLite you have more configration and control but from the code examples I looked at, I can say that Orman makes you write really less code.
For example Orman automatically takes entity class fields as columns and generates from name using it. in OrmLite, you always use annotation and give id for it. Orman automatically generates names.
I looked at many-to-many example they have [2], and they are using an intermediate class UserPost to establish relationship. Orman does not need that, it can infer many to many relationship and creates physical join table automatically.
[1] https://github.com/ahmetalpbalkan/orman/wiki/Why-orman-is-be... [2] http://ormlite.svn.sourceforge.net/viewvc/ormlite/ormlite-jd...