Coder Social home page Coder Social logo

Spring Boot 3.3.0 breaks generated SQL statements from a JPQL by putting inconsistent database column name in result set and order by clause leading to SQL Exception. about spring-boot HOT 5 CLOSED

dulshand avatar dulshand commented on July 22, 2024
Spring Boot 3.3.0 breaks generated SQL statements from a JPQL by putting inconsistent database column name in result set and order by clause leading to SQL Exception.

from spring-boot.

Comments (5)

scottfrederick avatar scottfrederick commented on July 22, 2024

Spring Boot itself it not involved in generating SQL queries - that is done by Hibernate or JPA. Spring Boot 3.2.6 uses Hibernate 6.4.8.Final and Spring Data BOM 2023.1.6, while Spring Boot 3.3.0 uses Hibernate 6.5.2.Final and Spring Data BOM 2024.0.0. It is likely that the changes you are seeing are the result of these library upgrades. You can narrow this down by keeping Spring Boot 3.3.0 and overriding the version of these dependencies with Maven or Gradle. If you can identify one of those library upgrades as the source of the problem, you can file an issue with the appropriate project.

If you can't narrow it down to a dependency version, and you would like us to take a closer look, then we will need a sample project that reproduces the problem and that we can run ourselves. You can share it with us by pushing it to a separate repository on GitHub or by zipping it and attaching it to this issue.

from spring-boot.

dulshand avatar dulshand commented on July 22, 2024

@scottfrederick Thank you for the quick response. I will see if I can narrow the issue to Hibernate 6.5.2.Final. I will let you know my findings.

from spring-boot.

dulshand avatar dulshand commented on July 22, 2024

@scottfrederick I can now confirm that the issue is in Hibernate 6.5.2.Final referenced by Spring Data BOM. I did the following in my pom.xml and the issue dissapeared.

org.springframework.boot spring-boot-starter-data-jpa org.hibernate.orm hibernate-core org.hibernate.orm hibernate-core 6.4.8.Final But there will be a time that we will eventually have to move beyond this version of Hibernate. As a result I will see how I can raise an issue with Hibernate project.

from spring-boot.

scottfrederick avatar scottfrederick commented on July 22, 2024

Thanks for letting us know. I'll close this issue, feel free to add a comment with a link to a Hibernate issue if you create one.

from spring-boot.

dulshand avatar dulshand commented on July 22, 2024

I have created an issue with Hibernate regarding this. https://hibernate.atlassian.net/browse/HHH-18253

from spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.