|
From: Keith D. <kd...@cs...> - 2004-02-27 19:24:57
|
I believe you can get that from the Hibernate Configuration object --> = see PersistentClass. =20 I started down that path when I built a visual HQL builder for our = client, but eventually that the SessionFactory.ClassMetadata classes are really = the ones you want to go with. However, I think if you need all the mapping information, you have to go collaborate with Configuration. =20 Keith =20 =20 =20 -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf = Of Rajeev Kaul Sent: Friday, February 27, 2004 1:57 PM To: spr...@li... Subject: Re: [Springframework-developer] Hibernate meta data I am sorry, I meant the class mapping information, instead of the class = meta data. I am interested in getting at the table name, the column names, = types, and lengths. ----- Original Message -----=20 From: Rod Johnson <mailto:rod...@in...> =20 To: spr...@li...=20 Sent: Thursday, February 26, 2004 10:11 PM Subject: Re: [Springframework-developer] Hibernate meta data Can't you get it from the SessionFactory? That's how I do it.=20 ----- Original Message -----=20 From: Rajeev Kaul <mailto:Ra...@cu...> =20 To: spr...@li...=20 Sent: Friday, February 27, 2004 1:34 AM Subject: [Springframework-developer] Hibernate meta data What is the best way to get hold of Hibernate meta data in Spring? I am interested in dynamically finding the tablename , column names, types, length, etc. of a persistent class. I know you can get it from the Hibernate Configuration object, but it is = not saved in the current implementation of LocalSessionFactoryBean class. = Is there some other way of getting this information, or should I subclass = the LocalSessionFactoryBean and make Configuration class object as one of = its properties?=20 =20 Rajeev Kaul |