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

Filter does not search by numeric fields #6

Closed
ikostenko opened this issue Oct 16, 2012 · 3 comments
Closed

Filter does not search by numeric fields #6

ikostenko opened this issue Oct 16, 2012 · 3 comments
Assignees
Labels
Milestone

Comments

@ikostenko
Copy link
Member

Nothing happens when trying to search by a numeric field, and the following exception is shown in the console:

java.lang.IllegalArgumentException: Parameter value [%49.00%] did not match expected type [java.math.BigDecimal] at org.hibernate.ejb.AbstractQueryImpl.validateParameterBinding(AbstractQueryImpl.java:375) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.AbstractQueryImpl.registerParameterBinding(AbstractQueryImpl.java:348) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:375) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.criteria.CriteriaQueryCompiler$1$1.bind(CriteriaQueryCompiler.java:195) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.criteria.CriteriaQueryCompiler.compile(CriteriaQueryCompiler.java:241) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:587) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_34] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_34] at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)

@max-dev
Copy link
Member

max-dev commented Dec 10, 2012

Fixed in 19a6ff6

@max-dev max-dev closed this as completed Dec 10, 2012
@ghost ghost assigned ikostenko Dec 10, 2012
@ikostenko
Copy link
Member Author

Impossible to search by integer fields. No exceptions in console
See FilterTest.canFilterByIntegerField()

@ikostenko ikostenko reopened this Jan 7, 2013
@ghost ghost assigned max-dev Jan 7, 2013
@max-dev
Copy link
Member

max-dev commented Jan 7, 2013

Linked to #25

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

No branches or pull requests

2 participants