Will this name be escaped?
There is none in the JPA specification that says so if your provider does this, it is a specific provider.
Will using a different table name solve the @Table problem (name = "otherName")
Obviously, that would be (unless you use another reserved keyword, of course). But if you are using a JPA 2.0 provider, there is a standard way to get the db escaped object name with double quotes:
@Table(name="\"Group\"")
There is nothing standard in JPA 1.0, it depends on your JPA provider. For example, Hibernate uses backlinks:
@Table(name="`Group`")
Or do I need to rename the class?
Not. The default table name of the object is the same as the name of the object, but you can control it using the @Table annotation, as we saw. Thus, there is no need to change the class name of your object.
Pascal thivent
source share