views:

112

answers:

3

I'm not sure what I'm missing here, but I can't find a reliable ORM for AIR.

The ones I find are not documented well and don't seem to have a solid following. Is a solid ORM non-existant at this point?

Ones I'm aware of:
http://flexorm.riaforge.org/
http://code.google.com/p/airorm/
http://code.google.com/p/air-activerecord/

A: 

ORM frameworks are designed to help access a database. Since Flex has no direct access to a database, an ORM framework would be extremely limited.

I assume the projects you link to are for dealing with AIR and the embedded SQLLite database.

There are plugins for Flash Builder that will generate value objects based on the database you specify. Originally they were just for ColdFusion, but I think they've expanded to include other technologies. However, I would not consider these "code generators" the same as an ORM.

www.Flextras.com
Just to clarify, I did state "I can't find a reliable ORM for AIR", so Flex isn't really the factor. I included Flex in my question to open the door for ActionScript options.I am not looking for a code generator. Only a true ORM solution, like ActiveRecord or Hibernate.
JohnAgan
I'm guilty of not reading carefully; sorry about that. Sorry!
www.Flextras.com
+2  A: 

I Never used it but have a look at the Cairngorm Persistance Library :

http://opensource.adobe.com/wiki/display/cairngorm/How+to+Use+the+Cairngorm+Persistence+Library

Looks like what you're looking for :

"The Persistence library eases the communication between an Adobe AIR application and an SQLite database. Both use different type systems (relational SQL versus object-oriented ActionScript). This Object Relational Mapping (ORM) library follows an iBATIS approach."

PeZ
Nice! I haven't seen this one. This looks promising. Thanks
JohnAgan
A: 

Check out Flextrine at www.flextrine.com

This is a client/server Flex ORM solution that integrates with Doctrine 2.

Dave Keen