From: George Moschovitis Date: 2005-10-29T02:43:23+09:00 Subject: Re: The "perfect" ORM? > This is very different from composing a domain model, coding it up, > then devising a mapper to persist your object graph. As far as I > know there are no Ruby ORM that attempt this. Ehm, Og does that. First you get your somain model: class User attr_accessor :name end class Book attr_accessor :title end Then you can annotate the model as needed (even in another source file): class User ann :name, :klass => String has_many :books end class Book belongs_to :user end Of course you can combine the two steps in one if you want (and typically you want this ;-)) then you just issue: user.save to perist yourt object or User.find_by_name(...) to query etc etc... Og even allows for inheritance and polymorphic relations. You can use a non RDBMS store if you want, or no store at all (use it just as an object manager). I suggest you have a look at this. regards, George. -- http://www.gmosx.com http://www.navel.gr http://www.nitrohq.com