Re: EOModel: retrieving tableattributes
Re: EOModel: retrieving tableattributes
- Subject: Re: EOModel: retrieving tableattributes
- From: jacques couzteau <email@hidden>
- Date: Tue, 16 Sep 2003 16:56:10 +0200
Am Dienstag, 16.09.03, um 15:03 Uhr (Europe/Berlin) schrieb
email@hidden:
> Jacques,
> On Tuesday, September 16, 2003, at 01:45 pm, jacques couzteau wrote:
>
>> Am Montag, 15.09.03, um 23:35 Uhr (Europe/Berlin) schrieb Kaj Hejer:
>>
>>> EOModelGroup.defaultGroup().entityNamed("MyTable).attributes()
>>
>> There seems to be something wrong with the variablename
>>
>> on build the compiler says:
>> cannot resolve symbol : variable EOModelGroup
>>
>
> You need to import com.webobjects.eoaccess.EOModelGroup;
yes, indeed!
I'm now happily retrieving my attributes with the following code:
NSArray as =
EOModelGroup.defaultGroup().entityNamed("Resultat").attributes();
//NSArray eoEntities = EOModelGroup.defaultGroup().models();
Enumeration e = as.objectEnumerator();
while (e.hasMoreElements()){
EOAttribute m = (EOAttribute)e.nextElement();
System.out.println("Session1: "+ m.columnName());
}
tak / thanks
jacques
>
> Cheers,
> -- Denis.
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
>
>
::: jochen Hagenstroem
::: www.hagenstrom.de
::: email@hidden
::: hamburg, germany
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.