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

Using boolean methods starting with is throws an Exception #21

Closed
SalehAly opened this issue Feb 25, 2016 · 2 comments
Closed

Using boolean methods starting with is throws an Exception #21

SalehAly opened this issue Feb 25, 2016 · 2 comments

Comments

@SalehAly
Copy link

Using boolean methods in entities starting with is, like isRead, throws an exception org.jinq.rebased.org.objectweb.asm.tree.analysis.AnalyzerException: Unknown method
using getRead does not..
.where(pair -> !pair.getTwo().isRead() ) throws exception

@my2iu
Copy link
Owner

my2iu commented Feb 25, 2016

I tried working with boolean fields before, and I found that my JPA provider expected them to have get in front, so I had Jinq default to expecting boolean variables to start with get. I may have configured my JPA stuff wrong.

You can manually tell Jinq about the isRead() method using something like

streams.registerAssociationAttribute(Lineorder.class.getMethod("isRead"), "read", false);

@my2iu my2iu closed this as completed Feb 25, 2016
@SalehAly
Copy link
Author

@my2iu Thank you 👍

@SalehAly SalehAly changed the title Using boolean methods starting with is thorws an Exception Using boolean methods starting with is throws an Exception Aug 26, 2016
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

2 participants