更新时间:2023-10-15 14:08:10
您应该拥有
SELECT g FROM Game g//you have game
但您使用的是game
而不是Game
.
@Table
批注用于DB.
如果需要在JPQL
中更改名称,请使用@Entity
批注:@Entity(name="nameUsedInJPQL") => nameUsedInJPQL is used in your JPQL.
If you need to change the name in your JPQL
, use the @Entity
annotation: @Entity(name="nameUsedInJPQL") => nameUsedInJPQL is used in your JPQL.
如果您未在@Entity
中指定任何内容,则使用区分大小写的Entity类名称.
If you do not specify anything in your @Entity
, that the case-sensitive Entity class name is used.