Skip to content

Runtime validation of field names used in criteria API [DATAMONGO-165] #1101

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mark Pollack opened DATAMONGO-165 and commented

made a refactoring from 'name' to 'firstName' and ended up with a NPE when trying to remove the object (inadvertently passed in 'null' to template.remove(). Optionally we can enable validation of the field names so they can checked at runtime against the class to give a more descriptive error and w/o hitting the DB. This I believe is done in morphia under the categorization of 'type-safe' query


Affects: 1.0 M3

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: mappingMapping and conversion infrastructurestatus: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions