3 Replies Latest reply on Nov 3, 2006 4:36 AM by Max Rydahl Andersen

    EJB3 Persistence to HashMap

    Franco Opperman Newbie

      Could anyone please point me in the right direction?

      I would like to know if it is somehow possible to map the result of a Query in EJB3 to a HashMap instead of to the various fields of an object.

      Something like: HashMap<String,List<? extends Object>> where the HashMap would be keyed on the column names of the ResultSet and the value of each key, a List of whatever type the values is in for that column.

      Any help appreciated.