0 Replies Latest reply on Mar 28, 2007 8:32 PM by Dr._Goomba

    Arrays in bean objects?

    Dr._Goomba Level 1
      I am building a small Flex application for a cd collection and am using DAO CRUD, Gateway and Bean for each table (Artists, Title, Tracks, etc).

      Keeping the this strict to form, it seems that there will be alot of unnecessary calls to the database, especially when adding tracks to the database table. I feel it would make more sense to create an array of track objects and then send them in one call. However i would prefer to use only one bean object to pass all this data. My Title Bean might include getter/setter functions such as "title", "artist", "tracks".

      Is it a bad practice/possible to use arrays in a bean object? I have only seen them in their simpler form.

      Just trying to wrap my brain around all this, so any ideas would be helpful. Thanks!