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

QuerySpecification doesn't support selecting non-lowercase columns #3262

Open
bivapa opened this issue Dec 9, 2024 · 0 comments · May be fixed by #3263
Open

QuerySpecification doesn't support selecting non-lowercase columns #3262

bivapa opened this issue Dec 9, 2024 · 0 comments · May be fixed by #3263
Assignees
Labels
type: bug Something isn't working

Comments

@bivapa
Copy link

bivapa commented Dec 9, 2024

Expected Behavior

When I define a repository method signature with a QuerySpecification parameter and I construct a QuerySpecification instance like below with a select statement over non-lowercase columns I expect the columns values to be set on the result entity object.

QuerySpecification<Entity> qs = (root, query, criteriaBuilder) -> {
    query.multiselect(root.get("foo"), root.get("bar"));
    return criteriaBuilder.equal(root.get("foo"), "foo");
};

Actual Behaviour

When I define a repository method signature with a QuerySpecification parameter and I construct a QuerySpecification instance with a select statement over non-lowercase columns Micronaut Data JDBC doesn't set the columns values on the result entity object.

Steps To Reproduce

  1. Clone the example application
  2. Run ./mvnw clean test to get the test querySpecificationTestLowercaseColumn pass and querySpecificationTestUppercaseColumn fail

Environment Information

Java 17

Example Application

https://github.com/bivapa/micronaut-query-specification-requires-lowercase-columns-bug-report

Version

4.7.1

@radovanradic radovanradic self-assigned this Dec 10, 2024
@radovanradic radovanradic added the type: bug Something isn't working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
2 participants