Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 174135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:28:03+00:00 2026-05-11T13:28:03+00:00

I have a entity which has a list of Child1 objects. The mappings seem

  • 0

I have a entity which has a list of Child1 objects. The mappings seem to work fine for this. If I try to add a list of Child2 objects to the Child1 entity and set up the mapping a xml mapping doesn’t seem to get created and I get this error:

Test method vRATest.ORMTest.NHibernateTests.NHibernate_Should_Be_Able_To_Get_All_Routes­_Using_ProjectID threw exception: NHibernate.MappingException: Association references unmapped class: vRA.Domain.RouteLocationNH.

I have checked my entities and mappings several times now but I can’t seem to figure out how to make this 3rd level work. Is this even possible in Fluent NHibernate or even NHibernate? I am new to both of these technologies so thought I’d better ask. If anyone has a working example of 3 levels of entities that work I’d appreciate seeing how to do this.

thanks in advance! Bill

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:28:03+00:00Added an answer on May 11, 2026 at 1:28 pm

    This is definitely possible. The exception message indicates that you’re missing a mapping for one of the classes in one of your References<T>() calls (or many-to-one in XML mappings) in one of your maps.

    Go through your classes and make sure that you have a ClassMap class for every entity class that is referenced from any of your existing mappings.

    The fact that the problem occurred after you setup the mapping from Child1 to Child2 indicates to me that it’s a problem with Child2 or one of the classes that it references.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JPA object which has a many-to-many relationship like this: @Entity public
I have an entity on the server called foo which has a list of
I have Person entity which has composition with Location Entity @ManyToOne(fetch = FetchType.EAGER, cascade
I have an entity which has 15 members. There are various types of members
I have an Account entity which has all fields in UpdateCheck = Never except
I have an entity Product which has relationship category, which is optional, and use
Assume we have an Invoice entity which has many InvoiceDetails . Each invoice detail
I have the following situation: An Conversations entity/table which has multiple Tags associated to
I am using eclipselink for JPA . I have an entity, which has a
I have one project which has RIAService with entity framework that is referenced to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.