Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator != not supported by JdbcPersistenceManager #12

Open
joshx opened this issue Nov 17, 2011 · 0 comments
Open

Operator != not supported by JdbcPersistenceManager #12

joshx opened this issue Nov 17, 2011 · 0 comments

Comments

@joshx
Copy link

joshx commented Nov 17, 2011

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant