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:
Stephane Nicoll
2014-04-30 10:51:08 +02:00
parent 2596634c88
commit a27be338c6
2 changed files with 64 additions and 64 deletions

View File

@@ -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)