Git Product home page Git Product logo

Comments (3)

quaff avatar quaff commented on June 18, 2024

It's a breaking change at Spring Boot side spring-projects/spring-boot@4d30eb4

By default, Spring Boot configures the physical naming strategy with CamelCaseToUnderscoresNamingStrategy.

Spring Boot will lowercase column name in @Column() since v2.6.0, so the column name is "id$" in generated sql but ID$ in table structure, H2 treat quoted name as case sensitive, so there are different columns.

The workaround is changing ID$ to "id$" in your sql. Or set physical-strategy to org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl.

from spring-data-jpa.

quaff avatar quaff commented on June 18, 2024

hibernate/hibernate-orm@cbcec73#diff-f9280f07a52481f6f0ad138275022f60d985652522d975b0b7fa1519b9559e92R112

Hibernate will quote column name if it contains $ since 6.0.0.Beta2.

from spring-data-jpa.

christophstrobl avatar christophstrobl commented on June 18, 2024

Thank you @quaff for looking this up!

from spring-data-jpa.

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.