Skip to content

NH-3303 - Refactoring and fixes for custom SQL code #360

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

Closed
wants to merge 2 commits into from

Conversation

ggeurts
Copy link
Contributor

@ggeurts ggeurts commented Oct 17, 2014

An up-to-date version of changes proposed in pull request #161.

var lockModes = new List<LockMode>();
var resultColumnProcessors = new List<IResultColumnProcessor>();
var resultTypes = new List<IType>();
var transformerAliases = new List<string>();
Copy link
Member

Choose a reason for hiding this comment

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

can we remove this unnecessary changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added the this. prefixes to get clearer distinction between local variable and instance fields, as in the original code the only difference between field and local variable names was the casing. I can revert that change to get a clearer view of the actual changes that this commit introduces, but it makes reading/understanding the code harder.

@ggeurts
Copy link
Contributor Author

ggeurts commented Oct 19, 2014

Reverted changes to local variable names and field initialisation as requested.

@oskarb
Copy link
Member

oskarb commented Oct 20, 2014

@ggeurts For a while now we often follow Resharper's default settings, which is to warn for presence of this and instead suggests using _instanceVariable as a pattern.

Given the large size of the PR, this should not be taken as a request to change this right now.

@hazzik hazzik added this to the 5.0.0 milestone Oct 22, 2014
@hazzik hazzik changed the title Refactoring and fixes for custom SQL code NH-3303 - Refactoring and fixes for custom SQL code Nov 18, 2014
@hazzik hazzik removed this from the 5.0.0 milestone Nov 18, 2014
@hazzik
Copy link
Member

hazzik commented Nov 18, 2014

The JIRA issue has been closed as "Won't Fix" @oskarb can you please elaborate? /cc @nhibernate/committers @ggeurts

@ggeurts
Copy link
Contributor Author

ggeurts commented Nov 18, 2014

I am aware this is a deviation from the Hibernate code base, but given that my company uses a fair amount of custom sql code with NHiberate and have fixed a fair amount of related issues with it, a refactoring of the custom sql code base is desirable to keep the code maintainable. The changes and their rationale have been well documented in pull request #161.

@oskarb
Copy link
Member

oskarb commented Nov 22, 2014

@hazzik I think it was partly a generic hesitance to diverge from Hibernate, and in particular I'm interested in Hibernate Loader refactoring done in 2012-2014 and how porting that might impact these changes (or the other way around).

@hazzik
Copy link
Member

hazzik commented Apr 26, 2017

Can you please enable Allow edits from maintainers PR option?

@fredericDelaporte
Copy link
Member

Replaced by #1945.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants