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

前端 未结 7 1668
陌清茗
陌清茗 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:45

    @Column(name="\"open\"")
    

    This will work for sure, Same problem happened with me, when I was learning hibernate.

提交回复
热议问题