De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de Tim Hoff
Enviado el: lunes, 24 julio, 2006 8:52
Para: [email protected]
Asunto: [flexcoders] Re: complex object in cairngorm

Hi Robert,

On the server side you can design your data model as a relational database.  In your case, the flat tables would be:

Group:
    groupId,
    groupName

Product:
    productId,
    groupId,
    productName,
    imageURL,
    price

Model:
    modelId,
    productId,
    color

This is a similar structure to the VO, but isn't limited to one VO definition.    You can construct and deconstruct the VO's sent and received from the application with either SQL queries, stored procedures, CFC's, or whatever method your server side technolgy uses.   This is just one approach; java-based back-ends can be a little more integrated.  But, by keeping the server-side data in relational tables, you add a little more flexibility for future needs.

-TH

--- In [email protected], Robert Wąs <[EMAIL PROTECTED]> wrote:
>
> In the examples that i know i not found solution how persist complex
> objects in server side (for me sql) storage. For example following
> structure:
> Group
> -name
> Product
> -name
> -imageURL
> -price
> Model
> -color
> Group has 1...n Products, Product has 1...n Models
> Temporary i have VO for every objects, but VO are bloated if i use it in
> different context, for example sometimes my Product should has image
> I manage that structure view in swf but if i want persist them that
> should i do - just send whole tree to server via VO and create sql
> queries? I use cairngorm, amfphp.
>
> --
> Robert Was
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to