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.
Is it possible to do something like this with OJB ?
Thanks,
Cae