discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDL2 How-To


From: Dirk Lattermann
Subject: Re: GDL2 How-To
Date: Tue, 26 Aug 2003 21:14:15 +0200

On 2003-08-26 17:18:39 +0200 S.J.Chun <chunsj@embian.com> wrote:

Can I find any simple example code for this ?

  >
Actually, I currently make the models programmatically and save them


Hello,

this is from a EOModel "tutorial" I started to write some time ago, it should illustrate creating a model programmatically and writing it to disk, then fetch some records.

Note the use of the model group and installing it as the "default model group" that is searched when the editing context first receives a fetch call. Normally, the default model group looks for all model files in all bundle locations to find the entity. [[EOModelGroup defaultGroup] addModel: myModel] doesn't seem to work.

I'm not too sure about all the RELEASEs, but it should give an idea.

I'm also unsure about the right join for the to-many relationship. Intuitively, as it is the reverse of a left join, it should be a right join, but the objects which start the join (departments) are already there, so what's the difference to an inner join??

Greetings, Dirk<model.tar.gz>

Attachment: model.tar.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]