Skip to content

Add ability to specify idbag (#415) #755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jeff-hagen
Copy link
Contributor

@jeff-hagen jeff-hagen commented Aug 8, 2025

Closes #415

Adds the ability to specify a collection .AsIdBag(). Note that the NHibernate xml mapping model is a little odd:

  • The column attribute on collection-id is always required even though a column element can technically be specified.
  • The type attribute is required and must be a .net type (varchar will throw an exception)
  • The idbag is identical to the bag mapping, with the 2 exceptions:
    • The idbag has a collection-id element
    • The idbag doesn't have one-to-many

@jeff-hagen jeff-hagen changed the title Add ability to specify idbag (closes #415) Add ability to specify idbag (#415) Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for <idbag />
1 participant