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

  • Home
  • SEARCH
  • 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 124371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:59:22+00:00 2026-05-11T04:59:22+00:00

Err, I can’t think of better title. Basically I have a class called MarketGroups,

  • 0

Err, I can’t think of better title. Basically I have a class called MarketGroups, this has a child collection Markgroups that has a collection of MarketTypes and MarketTypes has a collection of MetaGroups.

I would like to be able to, in one query, load the Parent, and only return Child MarketGroups that have MarketTypes with one specific MetaGroup in its MetaGroup collection.

I am aware of this question: Filter child collection returned with Aggregate Root using Nhibernate but is not the solution I’m looking for, I want to do this in code ideally as one query, but I wouldn’t mind splitting it.

🙂

  • 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-11T04:59:23+00:00Added an answer on May 11, 2026 at 4:59 am

    Unless you restrict the children that are loaded by default (using the method you linked to) you’ll have to load the Parent in one query and the children in another. AFAIK there’s no way to query an object and have only certain children loaded.

    You could always use MultiQuery to submit them at the same time mind you.

    HQL something like (this may be missing the mark a bit):

                select                 mt             from                  MarketGroup mg             inner join                 mg.MarketTypes mt             inner join                 mt.MetaGroups mg             where                 mg.ID=12312 and mg.ID=3214123 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't explain any better, because I honestly have no idea why this error
How to fix this error [Err] 1093 - You can't specify target table 'user_log'
I have a FileUploader class that can optionally be given a zip file which
I connected to mail server throw php and I had this error: ERR Can't
I was wondering has anyone come across thos error in SIP before? WARN/System.err(4623): javax.sip.SipException:
This is a really novice question, but I don't write C unless (err, if)
Suppose I have the following code function myFunction(param, callback) { ... if (err) {
In Java, I can easily cast a number to a byte, for example: System.err.println((byte)
Why can't I compile this code? //main #include stdafx.h #include X.h #include Y.h //#include
I wonder is anyone can look at this code and tell me why calling

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.