HHH-13175 "Comment" is a reserved keyword for Oracle
This time, hopefully, it's fixed for good...
This commit is contained in:
parent
00bb35455c
commit
829ca59b23
|
@ -109,7 +109,7 @@ public class EntityGraphFunctionalTests extends BaseEntityManagerFunctionalTestC
|
||||||
inTransaction(
|
inTransaction(
|
||||||
entityManagerFactory(),
|
entityManagerFactory(),
|
||||||
session -> {
|
session -> {
|
||||||
session.createQuery( "delete from CommentTable" ).executeUpdate();
|
session.createQuery( "delete from Comment" ).executeUpdate();
|
||||||
session.createQuery( "delete from Issue" ).executeUpdate();
|
session.createQuery( "delete from Issue" ).executeUpdate();
|
||||||
session.createQuery( "delete from User" ).executeUpdate();
|
session.createQuery( "delete from User" ).executeUpdate();
|
||||||
}
|
}
|
||||||
|
@ -231,8 +231,8 @@ public class EntityGraphFunctionalTests extends BaseEntityManagerFunctionalTestC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Entity(name="CommentTable") // "Comment" reserved in Oracle
|
@Entity(name = "Comment")
|
||||||
@Table( name = "comment" )
|
@Table(name = "CommentTable") // "Comment" reserved in Oracle
|
||||||
public static class Comment {
|
public static class Comment {
|
||||||
private Integer id;
|
private Integer id;
|
||||||
private Issue issue;
|
private Issue issue;
|
||||||
|
|
Loading…
Reference in New Issue