mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-27 20:49:34 +00:00
Replace column name using reserved keyword
This commit replaces the "index" property of Review to use a custom
column name ("idx") as index is a reserved keyword in some RDMS such
as Oracle and MySQL.
Fixes gh-752
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ public class Review implements Serializable {
|
||||
@ManyToOne(optional = false)
|
||||
private Hotel hotel;
|
||||
|
||||
@Column(nullable = false)
|
||||
@Column(nullable = false, name = "idx")
|
||||
private int index;
|
||||
|
||||
@Column(nullable = false)
|
||||
|
||||
Reference in New Issue
Block a user