You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by oj...@db.apache.org on 2004/03/17 07:52:11 UTC

[DB OJB Wiki] New: DataBindingtoaHashMap

   Date: 2004-03-16T09:08:52
   Editor: 194.162.203.238 <>
   Wiki: DB OJB Wiki
   Page: DataBindingtoaHashMap
   URL: http://wiki.apache.org/db-ojb/DataBindingtoaHashMap

   no comment

New Page:

##language:en
I am currently searching for a Data Binding platform that will help me do the following:

Bind data from a table like this:

Group    Article    Price
--------------------------
G1         A          3
G1         A          4
G1         B          5
G2         A          6

... into a 'resultSet' ArrayList as follows (where the => connects a key/value pair):

ArrayList{
0 => HashMap 
{
 'name' => 'G1'
 'Article' => ArrayList
 { 
  0 => HashMap 
  {
   'name' => 'A'
   'Price' => ArrayList
      {
        '3'
        '4'
      }
  }
  1 => HashMap 
  {
   'name' => 'B'
   'Price' => ArrayList
      {
        '5'
      }
  }
}
1 => HashMap 
{
 'name' => 'G2'
 'Article' => ArrayList
 { 
  0 => HashMap 
  {
   'name' => 'A'
   'Price' => ArrayList
      {
        '6'
      }
  }
}
}

I'm making the change to java from php, so please excuse the weird syntax and strange request.

I've taken a look at Castor and OJB, but I'm not quite sure if they'll do the trick.

Anybody out there have any ideas?

Thanks,

Cae

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org