I can\'t make this query work:
Query query = eManager.createQuery(\"select c FROM News c WHERE c.NEWSID = :id\",News.class); return (News)query.setPara
entity have persistent attribute named newsId.but in query you have used NEWSID . try with this
select c FROM News c WHERE c.newsId = :id