Skip to content

Commit

Permalink
Replace column name using reserved keyword
Browse files Browse the repository at this point in the history
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 spring-projectsgh-752
  • Loading branch information
snicoll committed Apr 30, 2014
1 parent 2596634 commit a27be33
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading

0 comments on commit a27be33

Please sign in to comment.