What you are looking for is not tables involved in a query but tables of a
class hierarchy.Btw, for your request you should manual invoke the query
translator and then
IQueryTranslator.QuerySpaces

For the class
((ISessionFactoryImplementor)sessionFactory).GetEntityPersister(...).QuerySpaces

2009/5/22 kor <[email protected]>

>
> hi, i have an extendible architecture with a base AbstractClass and
> different ConcreteClass1, ..., ConcreteClassN.
>
> i need to export out of the db all and only the data relative to
> AbstractClass and subtypes
> (from an object point of view i will calll session.createQuery("from
> AbstractClass"))
>
> there are a lot of other entities in my db so i don't have a static
> list of tables (becouse the system is dynamically extendible with new
> entities and associate tables) and i can't export all the tables in
> the db.
>
> i will use an external script built at runtime to export data from a
> specified list of table names so what i need is something as
>
> IEnumerable<string> tables = session.CreateQuery("from
> AbstractClass").GetInvolvedTables();
>
>
> somebody have a suggestion?
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to