An EJB QL Query requires a SELECT clause at the beginning of the Query.

解决方案 »

  1.   

    getYear() in java.util.Date has been deprecated 
    自己翻译一下不就知道了...另外,ejb用的是 ejb ql 语言,不是sql.你自己找点资料看看就明白了,很简单的.
    WHERE partid = ?1 and subscrbid = ?2 and expdate is null
    这样写肯定是错误的
    select object(o) from beanname where o.partic = ?1 ....
    这样还差不多