select object(o) from yourejb as o

解决方案 »

  1.   

    finderAll???
    我记得是findAll()吧。好久没搞了。
    这些地方应该不会错。
    记得,改动一次要rebuild一下。最好先undeploy再deploy。
    有时候你刚改过的东西,也保存了,可能你再看他的时候,还是老样子。多注意点。
      

  2.   

    这个方法名也有严格的限制吗?
    我还没有deploy。
    make的时候就出错了。
      

  3.   

    我加了EJBQL语名也出错。
    EJBQL:
    SELECT OBJECT(A) from A for AccountTest.Bean ORDERBY A.idEJBQL Error:
    "myTest01.jar": [EJB:011017]Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
    "myTest01.jar":  
    "myTest01.jar": Query:
    "myTest01.jar": EJB Name:        AccountsTest
    "myTest01.jar": Method Name:     findAll
    "myTest01.jar": Parameter Types: ()
    "myTest01.jar":     SELECT OBJECT( =>> A <<=  ) from  A for AccountsTest 
    "myTest01.jar": EJB QL compilation encountered error: [EJB:013080]
    "myTest01.jar": Problem, the path expression/Identifier 'AccountsTest' starts with an identifier: 'AccountsTest'. The identifier 'AccountsTest', which can be either a range variable identifier or a collection member identifier, is required to be declared in the FROM clause of its query or in the FROM clause of a parent query. 'AccountsTest' is not defined in the FROM clause of either its query or in any parent query. 
    "myTest01.jar": Action, rewrite the query paying attention to the usage of 'AccountsTest'.
    "myTest01.jar": .