JPA Uppercase table names

前端 未结 4 1151
你的背包
你的背包 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:32

    I faced the same issue and I back quoted ( ` ) my table name in the entity declaration like this "`UTILISATEUR`". @Table(name = "`UTILISATEUR`")

    ` using postgresql 11 with dialect : org.hibernate.dialect.PostgreSQL95Dialect it generated me an upercased table name on database.

提交回复
热议问题