Good ORM tool for android
I'm building a native app tha all its entities should commadate in sqlite database. I was looking over to find a decent ORM tool for android that whould be similar to the CoreData of the Iphone(which supports graphical design and code generation).
I would like to build my entities code according to the graphic design.
If it is just about creating and managing the database and you can use SQLite, then take a look at this page:
List of Management Tools for SQLite
There are a lot of tools listet, that work with SQLite and there should certainly be one that suits your need.
Also, I think you are using the wrong term with ORM. What you want is a management tool, where you can build your DB with a designer. An ORM system is basically a mapper between your database and your programming language. ORM would come in to play, when you want to represent your database in code.
See the description from wikipedia:
Object-relational mapping (ORM, O/RM, and O/R mapping) in computer software is a programming technique for converting data between incompatible type systems in object-oriented programming languages. This creates, in effect, a "virtual object database" that can be used from within the programming language. There are both free and commercial packages available that perform object-relational mapping, although some programmers opt to create their own ORM tools.
Wikipedia page on ORM
While there are a few (SQLite) ORM Libraries around for Android, there is, to my knowledge, no graphical tool which outputs Java Class
es tailored for an arbitrary ORM Class template. ORMs in Java tend to use @Annotations
to wrap the given fields from the DB and every ORM pretty much has their own style.
Therefore I would recommend laying out a blueprint of your intended DB (eventually within a Modelling Application) and try to recreate it using the chosen ORM's specific API. Hope this helps you!
链接地址: http://www.djcxy.com/p/95954.html上一篇: WinForm中的输入处理
下一篇: Android的良好ORM工具