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 {

} 1 => HashMap {

} }

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?