Skip to content

Document need to exactly match Hibernate's property format when configuring spring.jpa.properties.hibernate.* properties #17975

@TheElk205

Description

@TheElk205

I just figured that the yaml parser is not working as intended. I have this part in my application.yaml

spring:
  profiles: development
  jpa:
    show_sql: true
    database: default
    generate-ddl: false
    properties:
      hibernate:
        order_inserts: true
        generate_statistics: true
        ddl_auto: validate
        jdbc:
          batch_size: 50
          lob:
            non_contextual_creation: true

If I start my applciation now, everything is fine, sql statements are printed and batching is working.
image

If I now change show_sql to showSql everything still works as expected. (double checked it by setting it to false as well, to be sure that it does not get overwritten)

BUT
If I change batch_size to batchSize, sql statements are not batched any more.
image

I am inserting 51 values at a time here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions