Hi,

As I understand it NH supports polymorphic queries and allows me to
write a query that will return  instances of classes that implement an
interface, but AR doesn't seem to support it. I have found this
example on the web of a possible way round the problem

http://colinramsay.co.uk/diary/2007/01/21/nhibernates-polymorphism/
http://forum.hibernate.org/viewtopic.php?t=969472

Is Colins method of opening a session the best way to do this? Or can
I import the interface somehow as Sergey suggests and write the query
in HQL?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to