Skip to content

DATAMONGO-1290 - Convert byte[] parameter in @Query to $binary representation. #332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

christophstrobl
Copy link
Member

We now convert non quoted binary parameters to the $binary format. This allows using them along with the @Query annotation.

@Query("{ 'lastname' : ?0 }")
Person findByLastname(byte[] lastname);
{ 'lastname' : { '$binary' : 'TWF0dGhld3M=', '$type' : 0} }

christophstrobl added a commit that referenced this pull request Nov 13, 2015
We now also treat references as source of a potential index. This enforces index creation for Objects like:

@document
class WithDbRef {

  @indexed
  @DBREF
  ReferencedObject reference;
}

Combining @TextIndexed or @GeoSpatialIndexed with a DBRef will lead to a MappingException.

Original pull request: #332.
christophstrobl added a commit that referenced this pull request Nov 13, 2015
We now also treat references as source of a potential index. This enforces index creation for Objects like:

@document
class WithDbRef {

  @indexed
  @DBREF
  ReferencedObject reference;
}

Combining @TextIndexed or @GeoSpatialIndexed with a DBRef will lead to a MappingException.

Original pull request: #332.
christophstrobl added a commit that referenced this pull request Nov 13, 2015
We now also treat references as source of a potential index. This enforces index creation for Objects like:

@document
class WithDbRef {

  @indexed
  @DBREF
  ReferencedObject reference;
}

Combining @TextIndexed or @GeoSpatialIndexed with a DBRef will lead to a MappingException.

Original pull request: #332.
…entation.

We now convert non quoted binary parameters to the $binary format. This allows using them along with the @query annotation
Moved parameter binding for string based queries into separate class.
christophstrobl added a commit that referenced this pull request Nov 20, 2015
…entation.

We now convert non quoted binary parameters to the $binary format. This allows using them along with the @query annotation.

Original pull request: #332.
christophstrobl added a commit that referenced this pull request Nov 20, 2015
…entation.

We now convert non quoted binary parameters to the $binary format. This allows using them along with the @query annotation.

Original pull request: #332.
christophstrobl added a commit that referenced this pull request Nov 20, 2015
…entation.

We now convert non quoted binary parameters to the $binary format. This allows using them along with the @query annotation.

Original pull request: #332.
odrotbohm added a commit that referenced this pull request Nov 20, 2015
Removed a level of indentation from ExpressionEvaluationParameterBinder.replacePlaceholders(…). Polished JavaDoc.

Original pull request: #332.
@odrotbohm odrotbohm closed this Nov 20, 2015
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1290 branch November 20, 2015 12:19
christophstrobl added a commit that referenced this pull request Nov 20, 2015
Moved parameter binding for string based queries into separate class.

Original pull request: #332.
odrotbohm added a commit that referenced this pull request Nov 20, 2015
Removed a level of indentation from ExpressionEvaluationParameterBinder.replacePlaceholders(…). Polished JavaDoc.

Original pull request: #332.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants