Skip to content
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

NH-3189 - IManyToOneMapper lacks method to add columns AND formula into a single relationship #1278

Closed
nhibernate-bot opened this issue Oct 12, 2017 · 1 comment

Comments

@nhibernate-bot
Copy link
Collaborator

Stephen Harvey created an issue — 15th June 2012, 12:04:48:

Mapping by code does not provide a mechanism allowing the user to do the following:


    <many-to-one name="EntityType">
      <formula>8579</formula>
      <column name="ENTITY_SECTION" />
    </many-to-one>

This xml config allows the user to create a reference to a foreign key with a fixed value created by the formula.

IManyToOneMapper allows a formula OR a set of columns, but not both.


Alexander Zaytsev added a comment — 24th November 2014, 21:12:53:

Does it work in HBM?

@fredericDelaporte
Copy link
Member

fredericDelaporte commented Jun 19, 2018

Does it work in HBM?

Yes, since NH-2117. But it is a bit unfortunate this change has been made only for the many-to-one case.

fredericDelaporte added a commit to fredericDelaporte/nhibernate-core that referenced this issue Jun 20, 2018
fredericDelaporte added a commit to fredericDelaporte/nhibernate-core that referenced this issue Jun 23, 2018
fredericDelaporte added a commit to fredericDelaporte/nhibernate-core that referenced this issue Nov 6, 2018
fredericDelaporte added a commit that referenced this issue Nov 8, 2018
Also fixes #1278

And enables a forgotten test for the hbm part of the feature
@fredericDelaporte fredericDelaporte added this to the 5.2 milestone Nov 8, 2018
@fredericDelaporte fredericDelaporte changed the title NH-3189 - IManyToOneMapper does not expose method to add columns AND formula into a single relationship. NH-3189 - IManyToOneMapper lacks method to add columns AND formula into a single relationship Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants