JDO uses field names in queries

Fixes #1023