Skip to content

Criteria/Restrictions: lack of operators? #64

@eskamuc

Description

@eskamuc

Hi,
first of all, I'd like to thank you for providing MongoLink on GitHub.
When trying out the criteria API I was wondering, why there is a method Restrictions.greaterThanOrEqual but no "greaterThan" or even "lessThan" respectively "lessThanEqual". The MongoDB QueryBuilder has all these methods (see http://api.mongodb.org/java/2.2/com/mongodb/QueryBuilder.html#lessThanEquals%28java.lang.Object%29 respectively http://api.mongodb.org/java/2.2/com/mongodb/QueryBuilder.html#lessThan%28java.lang.Object%29 )

So for me there are three questions:

  1. Are there plans to extend the Restrictions/RestrictionFactory for the missing operators like "lessThan", "lessThanEquals" or others?
  2. Is there a workaround for the issue?
  3. Is it possible to use a query built with MongoDB QueryBuilder to retrieve objects using MongoLink?

Regards,
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions