How to map an entity field whose name is a reserved word in JPA

前端 未结 7 1666
陌清茗
陌清茗 2020-11-22 12:35
@Column(name=\"open\")

Using sqlserver dialect with hibernate.

[SchemaUpdate] Unsuccessful: create table auth_session (id numeric(1         


        
7条回答
  •  醉话见心
    2020-11-22 12:50

    Some JPA implementations (e.g the one I use, DataNucleus) automatically quote the identifier for you, so you never get this.

提交回复
热议问题