Skip to content

DATAMONGO-1297 - Allow Indexed annotation on DBRef. #329

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 2 commits into from

Conversation

christophstrobl
Copy link
Member

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 an IllegalArgumentException.

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 an IllegalArgumentException.
@odrotbohm odrotbohm closed this Nov 13, 2015
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1297 branch November 13, 2015 16:53
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: #329.
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: #329.
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: #329.
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