I'm using Hibernate + Spring JPA and Mysql 5.7 as DBMS. I want to use some reserved keyword keywords as column names name and for that I eanbled:
{code:java} spring.jpa.properties.hibernate.globally_quoted_identifiers=true {code}
Some columns have a custom definition like:
{code:java} @CreatedDate @Column(updatable = false, columnDefinition = "DATETIME(6)") private LocalDateTime createdDate; {code}
Unfortunately Hibernate translate this as:
{code:java} `created_date` `DATETIME(6)` {code}
instead of
{code:java} `created_date` DATETIME(6) {code}
|
|