Skip to content

Operator != not supported by JdbcPersistenceManager  #12

Description

@joshx

I've successfully applied a filter like

filter("fieldName!=", exceptionValue)

in a query on GAE. When I test the same coding on Postgres, I get the error message below.

Reason for this issue is a hard-coded limitation in the code of JdbcPersistenceManager line 494:

            if(ClassInfo.isModel(f.getType())) { 
                if(!op.equals("=")) { 
                    throw new SienaException("Unsupported operator for relationship: "+op); 
                } 

(see http://groups.google.com/group/siena-discuss/browse_thread/thread/8833da633cacaf81)


SienaException occured : Unsupported operator for relationship: !=
play.exceptions.JavaExecutionException: Unsupported operator for
relationship: !=
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:229)
at Invocation.HTTP Request(Play!)
Caused by: siena.SienaException: Unsupported operator for relationship: !=
at siena.jdbc.JdbcPersistenceManager.appendSqlWhere(JdbcPersistenceManager.java:494)
at siena.jdbc.JdbcPersistenceManager.doFetchKeys(JdbcPersistenceManager.java:852)
at siena.jdbc.JdbcPersistenceManager.fetchKeys(JdbcPersistenceManager.ja va:946)
at siena.BaseQuery.fetchKeys(BaseQuery.java:146)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions