Re: WebAssistant and Class Name of EOEntities
Re: WebAssistant and Class Name of EOEntities
- Subject: Re: WebAssistant and Class Name of EOEntities
- From: Chuck Hill <email@hidden>
- Date: Fri, 30 Jan 2004 09:29:25 -0800
- Organization: Global Village Consulting, Inc.
I'd suggest going back and reading some of the docs. While multiple
entities can share EOGenericRecord that is a special case. In the
general case each entity needs its own class.
Chuck
Eugene Khablov wrote:
Hi all!
Recently I've faced a the following strange behavior of Web Assistant: the
list of available properties and relationships to show is getting from WRONG
entity.
In my EOModel I would like to use my custom EO class as a Class Name for
entities instead of the default EOGenericRecord. If so ALL entities with
particular custom Class Name have a list of properties and relationships of
LAST entity with this class name.
In my model I have entities:
Entity TextType:
className = MCBaseEntity;
attributes = (isBlocked, name, rowid, priority, textsOnMain)
classProperties = (name, rowid, isBlocked, priority, textsOnMain,
texts);
relationships = (
{
name = texts;
destination = Text;
isToMany = Y;
}
);
Entity User:
{
className = MCBaseEntity;
attributes = (email, name, nick, password, rowid, shortInfo, status)
classProperties = (info, nick, password, status, email, name,
shortInfo);
}
In "Pick Properties" of WebAssistant for task "edit" and entity "TextType" I
see:
+texts
email
info
nick
password
shortInfo
status
Nevertheless in "Show" browser of WebAssistant for task "edit" and entity
"TextType" I see by default:
isBlocked
name
priority
texts
textsOnMain
Can anyone comment this behavior or offer the solution to avoid the wrong
property list substitution?
And one more question. Is it necessary to use the full name of class in
Modeler's Class Name?
Any help would be greatly appreciated!
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
It is a funny thing about life; if you refuse to accept
anything but the best, you very often get it."
-- W. Somerset Maugham
<shamelessPlug>
Practical WebObjects
http://www.amazon.com/exec/obidos/tg/detail/-/1590592964
</shamelessPlug>
_______________________________________________
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.