I need delete from my DB all entities, that contain the "-" sign in the "name" prop.
What do I need to make a query?
You can't do that in the GAE datastore with only one query, because the datastore does not support "contains" queries. Therefore, you have two options:
true
. This property is updated every time the name is updated....
public void setName(String name) {
this.name = name;
nameContainsDash = name.contains("-");
}
public boolean isNameContainsDash() {
return nameContainsDash;
}
...
Of course, the second option might require data migration, since the property will be null
for existing entities.