Hi!
I have a table with only 2 columns, 'KEY' and 'VALUE'. I would like to retrieve a Map object from Hibernate with the key mapped to 'KEY' and value mapped to 'VALUE' instead of having to create a POJO to represent each record and returning as a list, after which I have to manually retrieve each record and store the key and value to a Map object. I'm using Hibernate with Spring, running on Oracle 10g, so I'm using Spring's HibernateTemplate object to perform my database operations. Anybody knows if it is possible in Hibernate to obtain a Map object directly without having the need to create POJO and mapping to the table?
Adrian
|