0 Replies Latest reply on Nov 27, 2006 1:45 PM by Modou Sanyang

    Is JBOSS 4.0.5GA is Generating Incorrect SQL?

    Modou Sanyang Newbie

      I have the following bean definition in jbosscmp-jdbc.xml:

       <entity-command name="oracle-sequence">
       <attribute name="sequence">SchemaName.General_Seq</attribute>

      JBOSS Generates the following create statement:

      {call INSERT INTO MYSEQ(id, ) VALUES (SchemaName.General_Seq.NEXTVAL, ) RETURNING id INTO ? }

      Which leads to the following SQLException:

      java.sql.SQLException: ORA-06550: line 1, column 32:
      PL/SQL: ORA-01747: invalid user.table.column, table.column, or column specification
      ORA-06550: line 1, column 7:
      PL/SQL: SQL Statement ignored

      Am I doing something wrong? Any help will be most appreciated.