Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.0.CR1
    • Fix Version/s: 2.1.0.GA
    • Component/s: Core
    • Labels:
      None

      Description

      I cannot call

      setOrderColumn("pi.payment.name"); // for joined tables

      for EntityQuery.

      I got

      java.lang.IllegalArgumentException: invalid order column
      at org.jboss.seam.framework.Query.sanitizeOrderColumn(Query.java:445)
      at org.jboss.seam.framework.Query.setOrderColumn(Query.java:436)

      I can see at Query.java that the column name is checked with pattern "
      w*$" (ORDER_COLUMN_PATTERN) wich i guess don't allowe the dot in the order column name.

      Can we chcenge the ORDER_COLUMN_PATTERN to allow ordering by related columns?

      I think it should be something like this '^(\w+)(\.\w+)*$'.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                norman.richards Norman Richards
                Reporter:
                jagin Jarek Gilewski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: