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-3918 - Nominate equality expressions in SELECT clauses #522

Merged
merged 1 commit into from
Nov 26, 2016

Conversation

PleasantD
Copy link
Contributor

with constants in them

  • Allow for entity equality to be correctly translated to HQL
  • Prevents unneeded joins and caching of entities in the query plan

@gliljas gliljas self-assigned this Nov 9, 2016
…nts in them

* Allow for entity equality to be correctly translated to HQL
* Prevents unneeded joins and caching of entities in the query plan
@PleasantD
Copy link
Contributor Author

Rebased on master

@PleasantD
Copy link
Contributor Author

Can this be included in 4.1.0?

@oskarb
Copy link
Member

oskarb commented Nov 21, 2016

I prefer to proceed with 4.1 as is rather than risk further delays by going into reviewing something. There is always going to be "one more PR". Better we try to get back to more frequent releases.

@PleasantD
Copy link
Contributor Author

How soon is the 4.1 release? How often will you be doing updates after that?
We are already using a custom build that includes this patch as well as #505 and #482, as these are blocking issues for our use of NH.

var bob = session.Query<Owner>().Single(o => o.Name == "Bob");

var queryWithWhere = session.Query<Entity>()
.Where(WhereExpression(bob))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for future - this indenting looks wrong depending on tab-size, because tab has been used also for alignment within a statement. Tabs are for indenting, space for alignment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted. NH differs from my usual development that uses spaces for everything, so I'm used to just pressing tab to align things.

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.

3 participants