Design Question
Design Question
- Subject: Design Question
- From: James Cicenia <email@hidden>
- Date: Thu, 22 Jul 2004 15:56:31 -0500
Hello -
Due to the nature of a very intense deadline I created my first
WebObject
application and it rocks! Thanks again to all that have ever helped me.
Now, as I go back through my code I start to think... is this really
the WO Way?
Here is my question... My pages/components are comprised of nested sub
components.
Originally, I had put all my query logic within these components. Now I
wonder, where is the
best place to put this logic? Should it be in my own EO class? This
would be ok, I think, for
some of the logic... for this portfolio give me a sorted list of
projects. Now this seems ok, because
I will only have one portfolio in memory per session at a time.
However, what about the project
classes? There will be many in memory at one time, so would no
necessarily want any query
logic there. Should there be some other "shadow" type class to do all
the queries? Should these
classes be instantiated at the Application level?
Just wondering what the pros do.
-James Cicenia
_______________________________________________
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.