[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3550) EntityQuery and ordering issue
Jarek Gilewski (JIRA)
jira-events at lists.jboss.org
Mon Oct 13 07:09:21 EDT 2008
EntityQuery and ordering issue
------------------------------
Key: JBSEAM-3550
URL: https://jira.jboss.org/jira/browse/JBSEAM-3550
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.1.0.CR1
Reporter: Jarek Gilewski
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+)*$'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list