Community
Participate
Working Groups
Build Identifier: There is only a org.eclipse.persistence.expressions.Expression.extract(String xpath) method which means that queries with namespaces eg extract("'//dataformat/@foo:id'") cannot be used. There are a number of workarounds including including getFunctionWithArguments() but for convenience the following methods could be added to Expression: org.eclipse.persistence.expressions.Expression.extract(String xpath, Vector namespaces) org.eclipse.persistence.expressions.Expression.extractValue(String xpath, Vector namespaces) Reproducible: Always Steps to Reproduce: 1. Create query using namespace in xpath 2. execute query 3. result - ORA-31011
This appears to be a MOXy issue.
Discussed this with the MOXy team - this looks to be more an ORM bug as it concerns database queries/expressions (albeit on XmlType data in the D/B). James provided a workaround, which Steven indicates in his comment. >EclipseLink only currently provides support for EXTRACT >without the namespace argument. >As a workaround you can either define your own operator, or use the >getFunction() API, or use custom SQL.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink