David LeBer wrote:

Seriously smacks of EOF commandment violations to me:

<http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments>

See: #6, #8.

I'd use awakeFromInsertion or create a cover accessor (lazyProperties(), 
setLazyProperties()), and in a purely naming convention vein, try to avoid 
having Entities with plural names, it makes it too easy to confuse them with 
relationships.
Thanks David. In this case I don't want to use awakeFromInsertion as the relationship is very, very optional (i.e. small % of entities have not-null relationship.) Info in #8 definitely validates my unease and your advice. I'll go with the cover accessor.

Naming conventions... I do use singular entity names in almost every case. Properties just makes sense plural for me even though it's always a to-one relationship. It holds a properties list in a text attribute which from a dba perspective probably should be normalized as a bunch of PropertyValue entities but from an efficiency perspective works perfectly the way it is.





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to