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

Add custom annotations and processor #755

Merged
merged 13 commits into from
Nov 22, 2022
Merged

Add custom annotations and processor #755

merged 13 commits into from
Nov 22, 2022

Conversation

michael-simons
Copy link
Owner

@michael-simons michael-simons commented Nov 21, 2022

  • wip
  • more wip
  • call it a day.
  • wip
  • Wip
  • repeatable annotations.
  • work on validation.
  • work on validation.
  • rels

Closes #703

@michael-simons michael-simons changed the title issue/703 Add custom annotations and processor Nov 21, 2022
@michael-simons
Copy link
Owner Author

Would be nice if you can check if I covered the most invalid scenarios.

@michael-simons
Copy link
Owner Author

TODO: Missing docs.

@sonarcloud
Copy link

sonarcloud bot commented Nov 22, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

91.0% 91.0% Coverage
0.0% 0.0% Duplication

@michael-simons michael-simons merged commit 5f8aa39 into main Nov 22, 2022
@michael-simons michael-simons deleted the issue/703 branch November 22, 2022 16:16
michael-simons added a commit that referenced this pull request Nov 22, 2022
This change adds a new module called `eu.michael-simons.neo4j:neo4j-migrations-annotation-catalog` with `@Required` and `@Unique` that can be used together with Spring Data Neo4j or standalone to shape your constraints around a class model.

The existing annotation processor will deal with both annotations and write catalogs accordingly.

While there is a broad range of annotations that are somewhat similar to `@Required`, non of them allows without further additions to define labels or types as the target of the constraint to be created. Therefore we decided on a custom one. XKCD 927 applies.

Closes #703
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.

Annotation-Processing: generate migration for unique constraints
1 participant