[b]Hibernate version:[/b]
2.1
[b]Mapping documents:[/b]
N/A (general question)
[b]Code between sessionFactory.openSession() and session.close():[/b]
N/A (general question)
[b]Full stack trace of any exception that occurs:[/b]
N/A (general question)
[b]Name and version of the database you are using:[/b]
SQL Server 2000
[b]Debug level Hibernate log excerpt:[/b]
N/A (general question)
Is there any possibility to access metadata of JDBC ResultSet? I need to know the width of a column. If the corresponding column in HQL represents some property, I can read it from the mapping. But what if the column is computed? (We transform the selected objects to XML in order to initialize ClientDataSet Delphi component and it requires metadata information.) The best solution I know is maintain this information together with named queries, isn't there any better solution?
I know it violates the encapsulation of data to the objects a little bit but the metadata information is surely known during lifecycle of ResultSet and it's a pity that it is not propagated to Hibernate user.
Thanks a lot for any advice.
Tomas Zalusky
|