[jboss-user] [EJB 3.0] - EJB3 Persistence to HashMap

JAVALuva do-not-reply at jboss.com
Wed Nov 1 04:11:49 EST 2006


Hi, 
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.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982315#3982315

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982315



More information about the jboss-user mailing list