Basic steps to convert XML to Map class

Original Post YankeeImperialistDog's Avatar

YankeeImperialistDog

18 Feb, 2010 04:44 PM via web

I have a very simple class and repository i'm resolving with Castle in
a Test class (NUnit) I have the fluent map (PersonMap) and I may be a
little lazy here by asking, but is there a place in the quick start or
other documentation that outlines what is necessary to swap out the
existing XML map for the fluent class?
In this case and until i understand fluent a little better i'll not be
using automapping.
Any thing i need to post please let me know.
Appreciated
KES

  1. Support Staff 2 Posted by James Gregory on 18 Feb, 2010 04:55 PM

    James Gregory's Avatar

    Could you clarify what you're asking?

    Do you want to know how to convert your XML mappings into ClassMap's? Or are you looking for help with getting NHibernate to recognise your ClassMap's?

  2. Support Staff 3 Posted by Hudson Akridge on 18 Feb, 2010 05:01 PM

    Hudson Akridge's Avatar

    I'll repost what I put on the email thread for posterities sake then:

    Outdated, but here you go: http://code.google.com/p/nhibernate-hbm-to-fluent-converter/

  3. 4 Posted by YankeeImperialistDog on 18 Feb, 2010 05:31 PM

    YankeeImperialistDog's Avatar

    this is where a picture is worth a ... i have the map class it's about as
    simple as it gets.
    I'm just looking for where i can or should make changes to stop using the
    hbm.xml and use the fluent class. I do have a posting with the screen shots
    on the new site.

    You are absolutely right about the vague part BTW. The question could have
    been more specific.

  4. Support Staff 5 Posted by James Gregory on 18 Feb, 2010 07:13 PM

    James Gregory's Avatar

    There's a section towards the end of the getting started guide that covers configuring NHibernate with your fluent mappings; specifically: getting started, configuration and the fluent configuration API.

  5. 6 Posted by YankeeImperialistDog on 18 Feb, 2010 09:41 PM

    YankeeImperialistDog's Avatar

    Thank you!!

  6. Support Staff 7 Posted by James Gregory on 18 Feb, 2010 09:57 PM

    James Gregory's Avatar

    You're welcome.

    I'm going to consider this resolved. Please either reopen this or create a new discussion if you require any further assistance.

  7. James Gregory resolved this discussion on 18 Feb, 2010 09:57 PM.

  8. YankeeImperialistDog re-opened this discussion on 18 Feb, 2010 10:01 PM

  9. 8 Posted by YankeeImperialistDog on 18 Feb, 2010 10:01 PM

    YankeeImperialistDog's Avatar

    ... now if there was only a way to get my avatar (which is just a head shot)
    on here ....

  10. Support Staff 9 Posted by James Gregory on 18 Feb, 2010 10:04 PM

    James Gregory's Avatar

    Tender (what powers this site) uses Gravatar for your avatar, which you just associate with the email address you've used to create the discussion.

  11. James Gregory resolved this discussion on 18 Feb, 2010 10:04 PM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

05 Jul, 2010 10:29 PM
05 Jul, 2010 12:45 PM
05 Jul, 2010 12:42 PM
05 Jul, 2010 12:17 PM
05 Jul, 2010 12:12 PM

 

03 Jul, 2010 12:26 AM
02 Jul, 2010 02:17 PM
02 Jul, 2010 08:18 AM
02 Jul, 2010 12:20 AM
01 Jul, 2010 10:14 PM