HIbernate errors...

09-01-16 yinyousong
小弟查询代码:public boolean isUsernameAvailable(String username){

return entityManager.createQuery(

"select m from Member m where m.username=:username")

.setParameter("username", username)

.getResultList().size()==0;

}

爆出exception:unexpected token: Member near line 1, column 15 [select m from Member m where m.username=:username]

那位高手能否指点下,那里出错了。

    

猜你喜欢