• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WebAssistant and Class Name of EOEntities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebAssistant and Class Name of EOEntities


  • Subject: WebAssistant and Class Name of EOEntities
  • From: Eugene Khablov <email@hidden>
  • Date: Fri, 30 Jan 2004 12:33:57 +0300

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!

--
Eugene Khablov
Software Engineer
MacTime, Rostov-on-Don, Russia
tel: +7 8632 650-137
web: http://www.demax.ru
web: http://www.mactime.ru
_______________________________________________
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.

  • Follow-Ups:
    • Re: WebAssistant and Class Name of EOEntities
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WebObjects and MySQL
  • Next by Date: Re: WebObjects and mySQL
  • Previous by thread: ISO Time & Scalar values
  • Next by thread: Re: WebAssistant and Class Name of EOEntities
  • Index(es):
    • Date
    • Thread