HHH-13175 "Comment" is a reserved keyword for Oracle

This time, hopefully, it's fixed for good...
This commit is contained in:
Guillaume Smet 2019-01-05 21:55:23 +01:00
parent 00bb35455c
commit 829ca59b23
1 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ public class EntityGraphFunctionalTests extends BaseEntityManagerFunctionalTestC
inTransaction(
entityManagerFactory(),
session -> {
session.createQuery( "delete from CommentTable" ).executeUpdate();
session.createQuery( "delete from Comment" ).executeUpdate();
session.createQuery( "delete from Issue" ).executeUpdate();
session.createQuery( "delete from User" ).executeUpdate();
}
@ -231,8 +231,8 @@ public class EntityGraphFunctionalTests extends BaseEntityManagerFunctionalTestC
}
}
@Entity(name="CommentTable") // "Comment" reserved in Oracle
@Table( name = "comment" )
@Entity(name = "Comment")
@Table(name = "CommentTable") // "Comment" reserved in Oracle
public static class Comment {
private Integer id;
private Issue issue;