Hi,

Is there a way to find out in code which classes are cached (i.e. have
the <cache> in their mapping)?

I tried the IClassMetadata but it doesn't seem to expose this info.
The EntityPersister has a HasCache property but I have to pass it an
instance of an entity.

The scenario for which I need this is that I want to eagerly fetch all
the entities marked with cached as soon as the sessionfactory is
created. This to avoid the N+1 problem.

Tolomaüs.
--~--~---------~--~----~------------~-------~--~----~
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