Hey Robert, On Fri, Oct 24, 2008 at 6:51 PM, Robert M. <[EMAIL PROTECTED]> wrote: > Is it possible to mix in a project ActiveRecord decorated classes > together with NHibernate manually created hbms?
Yep - Rhino Security does this. You need to create a subclass of the [RawXmlMapping] attribute. See this test: http://svn.castleproject.org:8080/svn/castle/trunk/ActiveRecord/Castle.ActiveRecord.Tests/IntegrationWithNHibernateTestCase.cs and http://svn.castleproject.org:8080/svn/castle/trunk/ActiveRecord/Castle.ActiveRecord.Tests.Model/ > I like the way ActiveRecord eases my mapping and autogenerates hbms > for me, but I would also like to benefit of all the power of newer > versions of NHibernate which have features not yet available in an > ActiveRecord model. The ideal solution to this would be to: a. Ask about missing features to see wether there is any interest in implementing them. b. Send a patch Which NH features do you wish you could use in AR? I guarantee that if there were new NH features I needed then AR would support them. > Another reason for this would be the fact that I like to have certain > HQL or SQL (optimized for Oracle database. e.g. connect by) queries in > an xml file rather than embedded in an assembly declared with > attributes. You should be able to create a subclass of the RawXmlMapping attribute to achieve this. Hope that helps, j. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---
