[flexcoders] data modeling question : vo's in subclasses. should be pretty easy

2008-04-17 Thread Rich Rodecker
Just looking for pointers on how to handle this situation: I have a BaseComponentClass, with several subclasses. Each of these subclasses also has a corresponding VO. All the subclass components use a getter/setter dataProvider property which expects a vo which matches their corresponding type.

Re: [flexcoders] data modeling question : vo's in subclasses. should be pretty easy

2008-04-17 Thread Josh McDonald
What do you mean by VO? -J On Fri, Apr 18, 2008 at 8:26 AM, Rich Rodecker [EMAIL PROTECTED] wrote: Just looking for pointers on how to handle this situation: I have a BaseComponentClass, with several subclasses. Each of these subclasses also has a corresponding VO. All the subclass

Re: [flexcoders] data modeling question : vo's in subclasses. should be pretty easy

2008-04-17 Thread gabriel montagné
On Thu, Apr 17, 2008 at 5:27 PM, Josh McDonald [EMAIL PROTECTED] wrote: What do you mean by VO? VO means ValueObject (a.k.a. DTO (Data Transfer Object)) .. It's a simple object, with no logic, used to carry data around in typed bundles. Instead of using an anonymous object like { username:

Re: [flexcoders] data modeling question : vo's in subclasses. should be pretty easy

2008-04-17 Thread Rich Rodecker
ah, i think i see what i was doing wrong...I was also storing the reference in the BaseClass: protected var _dataProvider:BaseVO; What was happening was that even though I was casting in the setter, in all my subclass' methods that refer to the _dataProvider, I had to keep recasting. Seems

Re: [flexcoders] data modeling question : vo's in subclasses. should be pretty easy

2008-04-17 Thread Josh McDonald
OK cheers.Never heard it described as a VO :) On Fri, Apr 18, 2008 at 10:41 AM, gabriel montagné [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 5:27 PM, Josh McDonald [EMAIL PROTECTED]dznuts%40gmail.com wrote: What do you mean by VO? VO means ValueObject (a.k.a. DTO (Data Transfer