Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-259

Ability to parse EJB QL multiline queries in orm.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.7
    • 1.0.0
    • kernel
    • None
    • Windows XP

    Description

      Multiline queries in orm.xml like this one

      <named-query name="Test.findAll">
      <query>
      select o
      from Test o
      </query>
      </named-query>

      Fail to execute with exception:

      Error message: org.apache.openjpa.kernel.jpql.TokenMgrError: Lexical error at line 1, column 10. Encountered: "\n" (10), after : ""

      Please, add the possibility to the parser to handle multiline queries.

      Attachments

        1. OPENJPA-259.patch
          0.3 kB
          Craig L Russell

        Activity

          People

            Unassigned Unassigned
            ognjen Ognjen Blagojević
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: