@Column(name=\"open\")
Using sqlserver dialect with hibernate.
[SchemaUpdate] Unsuccessful: create table auth_session (id numeric(1
If you are using JPA, you can escape with double quotes:
@Column(name = "\"open\"")
If you're using Hibernate native API, then you can escape them using backticks:
@Column(name = "`open`")
If you want to automatically escape reserved keywords, you can set to true the Hibernate-specific hibernate.globally_quoted_identifiers configuration property:
Yaml format
spring:
jpa:
properties:
hibernate:
globally_quoted_identifiers: true
For more details, check out this article.