Skip to content
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

fixed validation listener to use basically the same code as in Mappin… #346

Closed
wants to merge 21 commits into from

Conversation

sterlp
Copy link

@sterlp sterlp commented Mar 8, 2016


if (!violations.isEmpty()) {

LOG.info("During object: {} validation violations found: {}", source, violations);
LOG.info("During object: {} validation violations found: {}", target, violations);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unclean but didn't changed --> Logging + Throwing an Exception which may cause double logging of the same Exception / Problem.

christophstrobl and others added 20 commits March 15, 2016 15:20
…tation.

We now resolve aliased attribute values when reading @document on entity types. This allows creation of composed annotations like:

@retention(RetentionPolicy.RUNTIME)
@target({ ElementType.TYPE })
@document
static @interface ComposedDocumentAnnotation {

  @AliasFor(annotation = Document.class, attribute = "collection")
  String name() default "custom-collection-name";
}

Original pull request: spring-projects#347.
Related issue: DATACMNS-825.
…nnotations.

We now support @AliasFor to build composed annotations with: @document, @id, @field, @indexed, @CompoundIndex, @GeoSpatialIndexed, @TextIndexed, @query, and @meta. Added missing license header to @field.

Original pull request: spring-projects#347.
Related tickets: DATACMNS-825.
Added method, field and annotation target to @field annotation explicitly. Fixed copyright date ranges where needed.

Tweaked formatting in test cases.

Original pull request: spring-projects#347.
Related ticket: DATACMNS-825.
Switched to Slf4J-native placeholder replacement in debug logging for MongoTemplate.

Original pull request: spring-projects#348.
We changed BasicQuery to consider its parent getFieldsObject() when not given an explicit fields DBObject.

Original Pull Request: spring-projects#345
CLA: 165520160303021604 (John Willemin)
Added a few more tests and append values if present on Query.

Original Pull Request: spring-projects#345
An explorative approach to QBE trying find possibilities and limitations. We now support querying documents by providing a sample of the given object holding compare values. For the sake of partial matching we flatten out nested structures so we can create different queries for matching like:

{ _id : 1, nested : { value : "conflux" } }
{ _id : 1, nested.value : { "conflux" } }

This is useful when you want so search using a only partially filled nested document. String matching can be configured to wrap strings with $regex which creates { firstname : { $regex : "^foo", $options: "i" } } when using StringMatchMode.STARTING along with the ignoreCaseOption. DBRefs and geo structures such as Point or GeoJsonPoint is converted to their according structure.

Related tickets: DATACMNS-810.
Original pull request: spring-projects#341.
Adopt changes from query by example API refactoring.

Related tickets: DATACMNS-810.
Original pull request: spring-projects#341.
Adapt to API changes in Spring Data Commons.

Related tickets: DATACMNS-810.
Original pull request: spring-projects#341.
Tweaked section anchor to match conventions. Use level offsets to accommodate changes in Spring Data Commons.
@sterlp sterlp closed this Mar 22, 2016
@sterlp
Copy link
Author

sterlp commented Mar 22, 2016

Created a new one with test #350

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.

4 participants