HIbernate errors...

yinyousong發表於2009-01-16
小弟查詢程式碼: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]


那位高手能否指點下,那裡出錯了。

相關文章