JPA Uppercase table names

前端 未结 4 1158
你的背包
你的背包 2020-12-06 10:51

I have a table in Postgresql:

CREATE TABLE "UTILISATEUR"(
 
 "IdUtilisateur" serial NOT NULL,
 "Nom" character varying(50),
 &qu         


        
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 11:26

    You can configure your application with the next line depend the database:

    MySql

    spring.jpa.hibernate.naming_strategy = org.hibernate.cfg.DefaultNamingStrategy
    

    Postgres

    spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
    

    Oracle

    spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect
    

提交回复
热议问题