|
From: Rajeev K. <Ra...@cu...> - 2004-02-27 19:45:13
|
MessageOkay, that is what I thought. Is there a way to get to this =
Configuration object from the Hibernate SessionFactory, or do you save =
it during initialization (e.g. in a subclass of the =
LocalSessionFactoryBean)?
Regards,
Rajeev
----- Original Message -----=20
From: Keith Donald=20
To: spr...@li...=20
Sent: Friday, February 27, 2004 11:14 AM
Subject: RE: [Springframework-developer] Hibernate meta data
I believe you can get that from the Hibernate Configuration object --> =
see PersistentClass.
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.
Keith
=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=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=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
Rajeev Kaul |