If you add the isDebug flag to your activerecord facility, it will
output all the hbm files for you in the same directory as your
dll/exe.

      <facility id="ar.facility"
                pluralizeTableNames="true"
                isDebug="true">

I hope this helps.

Jason


On Mon, Aug 10, 2009 at 8:40 PM, Tyler Burd<[email protected]> wrote:
> Hi all,
>
>
>
> Is there a way to use ActiveRecord to generate the mapping xml to use with
> an existing nhibernate configuration?  I want to use raw NHibernate for a
> project, but I would really like to be able to use the AR attributes to
> generate the mappings.  I’m looking for something like this:
>
>
>
> var xmlStrings = ActiveRecordStarter.GetAllMappingXml()
>
>
>
> I’d like to do this for a couple of reasons:
>
> 1.       It makes integrating with existing projects easier.  I can map my
> domain classes with attributes and add the xml to the existing NH
> configuration.
>
> 2.       I think the AR attributes are superior to
> NHibernate.Mapping.Attributes (having to explicitly specify the order of
> attributes is a pain).
>
>
>
> Is this possible?  Thanks!
>
> -tyler burd
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to