Commit a27be338 authored by Stephane Nicoll's avatar Stephane Nicoll

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
parent 2596634c
...@@ -43,7 +43,7 @@ public class Review implements Serializable { ...@@ -43,7 +43,7 @@ public class Review implements Serializable {
@ManyToOne(optional = false) @ManyToOne(optional = false)
private Hotel hotel; private Hotel hotel;
@Column(nullable = false) @Column(nullable = false, name = "idx")
private int index; private int index;
@Column(nullable = false) @Column(nullable = false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment