>>> import random
#These are the operators guns
Rook = ['MP5','P90','SG-CQB']
Doc = ['MP5','P90','SG-CQB']
Mute = ['MP5K','M590A1']
Smoke = ['FMG-9','M590A1']
#string of all the operators below
Defending_ope
public class PlayerSingleton {
private static PlayerSingleton player;
private String playerName;
private Weapon weapon;
Weapon stockMP5 = new MP5Weapon(); //Making a new weapon called stockMP5 from MP5weapon Class
Weapon sniper = new SniperRifleWeapon(); //Making a new weapon called sn
我正在使用eclipse indigo,并且遇到了"JPA验证问题“。
我的命名查询是:
from Person p where p.name = :name
并且有这样的错误:
The query does not start with a valid identifier, has to be either SELECT, UPDATE or DELETE FROM.
但它是一个有效的JPQL查询。有人知道怎样才能消除这个错误吗?
如果我将查询更改为
select p from Person p where p.name = :name
没有更多的错误,但我不想更改所有的查询。
谢