[DISCUSSION] Object Relational Mapping (ORM) for different
programming languages
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Oct 10 11:26:54 CDT 2007
On 10/10/07 12:48 PM, "Philip Mötteli" <philip.moetteli at econophone.ch>
wrote:
>> ----------------------------------------------------
>> DECLARATION:
>>
>> class Contact < ActiveRecord::Base
>> belongs_to :state
>> end
>>
>> USAGE:
>>
>> Contact.find(1).state.abbreviation
>> ----------------------------------------------------
>>
>>
>> And this raise question if possible get such or similar syntax for
>> REALbasic
>> or C++ or other languages that Valentina supports.
>>
>> And as far as I see answer is NO.
>>
>> BECAUSE it seems to me Ruby allow return some kind of general
>> parent Object
>> class and send him any messages, i.e. Calls of methods.
>>
>> C++ and REALbasic are strict type languages. You cannot take
>> REALobject and
>> calls method of its sub-class.
>>
>> May be such style possible in Obj-C.
>
> Yes, it is.
> The first part though, where he declares the relationship, has to be
> implemented in a OR-library, so that it is reflected in the db.
Or even better on db engine level, right?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list