JDBC Derby JPA Persistence Check Problem "Internal exception: java.sql.SQLSyntaxErrorException: Syntax error: encountered" USER "

I have an entity class called User, and when I perform persistence testing with Arquillian, I always have an error ...

Internal Exception: java.sql.SQLSyntaxErrorException: Syntax error: Encountered "USER" at line 1, column 13.

... because of the class name " User". I guess that Useris a reserved keyword. When I change my entity name to User_, it works great.

Do I need to change the name of my entity? Is there anything else I can do to fix this?

+5
source share
1 answer

, USER - Derby. JPA ( @Table).

+5

All Articles