Spring-boot: More clearly document how to configure Hibernate properties

Created on 29 Sep 2014  路  2Comments  路  Source: spring-projects/spring-boot

Identifiers can be quoted globally (for example to avoid clash with reserved keywords in table names etc ...).

This can be achieved with the hibernate property :

hibernate.globally_quoted_identifiers=true

"JpaProperties$Hibernate" should be modified so that it can add this property to Hibernate's properties.

documentation

Most helpful comment

You should be able to set any Hibernate property in application.properties by prefixing it with spring.jpa.properties. For example:

spring.jpa.properties.hibernate.globally_quoted_identifiers=true

This is mentioned in the docs, but it could perhaps be made a little easier to find.

All 2 comments

You should be able to set any Hibernate property in application.properties by prefixing it with spring.jpa.properties. For example:

spring.jpa.properties.hibernate.globally_quoted_identifiers=true

This is mentioned in the docs, but it could perhaps be made a little easier to find.

Yep, suffice to give an example with a different property such as the one mentioned. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

snicoll picture snicoll  路  37Comments

philwebb picture philwebb  路  42Comments

philwebb picture philwebb  路  33Comments

ganeshkrishnan1 picture ganeshkrishnan1  路  63Comments

igormukhin picture igormukhin  路  55Comments