Spring boot JPA insert in TABLE with uppercase name with Hibernate

后端 未结 6 985
别那么骄傲
别那么骄傲 2020-12-01 07:08

i have a table entity mapped as :

@Entity
public class ItemsToRegister implements Serializable{

@Id
@Column(name = \"ID_ITEM_TO_REGISTER\")
@GeneratedValue         


        
6条回答
  •  甜味超标
    2020-12-01 07:58

    You'll need to escape the table name with tics(`) to make it case sensitive.

    @Table(name = "`ITEMS_TO_REGISTER`")
    

提交回复
热议问题