Comments (6)
For that type of expression, you need to compare against a string like this:
Predicate predicate = PredicateBuilder.parse("testId == \"53c7eaf909c7d69602013c68\"");
from nexusdata.
It works perfectly. I have another one question. Predicate support query like this:
"test != null" ?
from nexusdata.
Good point. I've just pushed a change to support comparison expressions having null
. I'll close this issue once a build is released to maven.
from nexusdata.
Can You released to maven?
from nexusdata.
Done.
from nexusdata.
Thanks, but i have a problem. If i use predicate like PredicateBuilder.parse("deleteDate == NULL") i get:
java.lang.NullPointerException
at com.github.dkharrat.nexusdata.store.DatabaseQueryService$QueryBuilder.visit(PredicateToSQL.java:85)
at com.github.dkharrat.nexusdata.store.DatabaseQueryService$QueryBuilder.visit(PredicateToSQL.java:166)
at com.github.dkharrat.nexusdata.store.DatabaseQueryService$QueryBuilder.visit(PredicateToSQL.java:137)
at com.github.dkharrat.nexusdata.store.DatabaseQueryService$QueryBuilder.visit(PredicateToSQL.java:156)
at com.github.dkharrat.nexusdata.store.DatabaseQueryService.buildQuery(PredicateToSQL.java:62)
at com.github.dkharrat.nexusdata.store.DatabaseQueryService.query(PredicateToSQL.java:41)
at com.github.dkharrat.nexusdata.store.AndroidSqlPersistentStore.executeFetchRequest(AndroidSqlPersistentStore.java:85)
at com.github.dkharrat.nexusdata.core.ObjectContext.executeFetchOperation(ObjectContext.java:120)
from nexusdata.
Related Issues (19)
- support for double, float HOT 6
- Data mirgration upon db version update is not working HOT 1
- support for transformable HOT 1
- support for many to many relationships
- [BUG] PredicateToSQL HOT 3
- Support to configure Parent Entity HOT 4
- why it's "not yet optimized for large data sets" HOT 4
- Where is pom.xml located? HOT 1
- gradle not found when trying to generate model files HOT 2
- Is weak-typing supported when modifying record? HOT 1
- Do you plan to support context inheritance?
- SUBQUERY in NexusData
- Parent Entity supported? HOT 2
- FetchRequest does not return HOT 1
- keypath in predicate?
- What is wrong with predicate? HOT 2
- Orderedset instead of Set? HOT 1
- NSMergeByPropertyObjectTrumpMergePolicy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexusdata.