Skip to content

Conversation

@dmdashenkov
Copy link
Contributor

@dmdashenkov dmdashenkov commented Jan 30, 2017

Support for multiple-argument by annotations.

The syntax is:

MyType boundField = 42 [(by)= "qualifier.One.target_field|qualifier.Two.alternate_target_field"];

Wildcard syntax ((by)="*.target_field|no_qualifier_field") is supported in cases when annotation enrichment_for gives a not ambiguous definition for the target type.

For FQN field names in the enrichment_for may be omitted (the same behavior as with a single-argument by annotation).

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@dmdashenkov please address your TODOs and a single comment.

GranterEventsEnrichment.class);
validator.validate();
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove an excessive line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@codecov-io
Copy link

codecov-io commented Jan 30, 2017

Codecov Report

Merging #295 into master will increase coverage by 0.21%.

@@             Coverage Diff              @@
##             master     #295      +/-   ##
============================================
+ Coverage     86.49%   86.71%   +0.21%     
============================================
  Files           193      193              
  Lines          6903     6956      +53     
  Branches        527      540      +13     
============================================
+ Hits           5971     6032      +61     
+ Misses          815      801      -14     
- Partials        117      123       +6

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d6eb35...5134b27. Read the comment docs.

# Conflicts:
#	build.gradle
#	server/src/main/java/org/spine3/server/event/enrich/ReferenceValidator.java
#	server/src/test/java/org/spine3/server/event/enrich/EventEnricherShould.java
@dmdashenkov
Copy link
Contributor Author

@armiol PTAL again

@dmdashenkov
Copy link
Contributor Author

@armiol Fixed issue with spaces in by argument.
PTAL again

@armiol
Copy link
Contributor

armiol commented Jan 31, 2017

@dmdashenkov LGTM.

@dmdashenkov dmdashenkov merged commit 22a7f17 into master Jan 31, 2017
@dmdashenkov dmdashenkov deleted the multiple-args-by-option branch January 31, 2017 15:57
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