hibernate-orm
hibernate-orm copied to clipboard
enhance type-checked result effect during the call to createQuery()
I have provided an implementation for HH-17926, please check it out.
https://hibernate.atlassian.net/browse/HHH-17926
Thanks for your pull request!
This pull request appears to follow the contribution rules.
› This message was automatically generated.
Is there anything I would like to change about this branch? @gavinking
So with this PR I get error messages formatted like this:
Missing constructor for class 'org.hibernate.orm.test.query.sqm.domain.ConstructedLookupListItem' with parameter types [[class java.lang.Integer, class java.lang.Integer]] (mismatch at position [2](java.lang.Integer -> java.lang.String)) [select new org.hibernate.orm.test.query.sqm.domain.ConstructedLookupListItem( e.id, 1 ) from EntityOfBasics e]
- Why are there stacked
[[brackets here? - There should be a space between
[2]and(java.lang.Integer - The nested parentheses are unnecessary and noisy.
- There is no need for
classinclass java.lang.Integer, I know it's a class. - This simply isn't following the conventions we're trying to standardize on.
So the total effect is noisy and ugly.
Sometimes it's true that less is more, by the way.