I have found a class in Spring framework ... BeanWrapperImpl which is useful but we have to use it in condition : we have to include Pojo always in ql .... for example we can't query only column names like userid, username .... we have to do it using Pojo itself like Person, User. Then we pass the Pojo to BeanWrapperImpl which functions as the decorator to make us view the Pojo as property bag... the rest is easy.
But well, I will check if Hibernate version is more useful. Thanks for your suggestion David!!! -----Original Message----- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 9:49 AM To: Struts Users Mailing List Subject: RE: How to extract columnNames values Indra, I believe you want the latest verion of Hibernate which has some Metadata available which should have the column names. I've never used it so you might want to check out the hibernate forums on hibernate.org. Regards, David -----Original Message----- From: Indra Gunawan [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 2:27 AM To: 'Struts Users Mailing List' Subject: How to extract columnNames values Dear Hibernate Users, I want to write a component or hopefully find one if there is any that can create a Swing table model based on query results . I could achieve this using resultset metadata (jdbc brute force way) . And I want to use Hibernate to do the same . But the difficulty is Hibernate uses POJO classes . Then one thing came up : reflection ... but I tend to not using it as reflection will consume processing time more . How can I extract column names and all values in it ? ... I do really hope Hibernate provides a method that will give Map object that wraps column names along with its values . Thanks Indra --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]