0 Replies Latest reply on Jul 15, 2005 12:26 PM by Rodrigo Baquero

    Jboss generates a non valid Query in findByPrimaryKeyMethod

    Rodrigo Baquero Newbie

      I'm writting a very simple CMP EJB.

      The query of the method findByPrimaryKey that Jboss is generating is wrong.

      11:19:31,093 DEBUG [Usuarios#findByPrimaryKey] Executing SQL: SELECT FROM Usuarios t0_Usuarios WHERE
      11:19:31,093 ERROR [Usuarios#findByPrimaryKey] Find failed
      java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Incorrect syntax near the keyword 'FROM'.

      Where may be the problem??

      Thanks