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

Flesh out the documentation for the core lifecycle annotations #2203

Merged
merged 2 commits into from
Jan 25, 2023

Conversation

eheimburg
Copy link
Contributor

No code changes -- just some documentation tweaks. The lifecycle document is a good start, but I still had questions about how each annotation worked, and documenting the annotations seems like the best place to put more info. (It's where I looked first, anyway.)

I tried to only use examples that could be potentially useful -- for example, I didn't add examples of @PostPersist functions that take zero parameters, because I couldn't think of any situation where that would be useful.

This is just a draft -- open to alterations.

@evanchooly
Copy link
Member

Thank you for taking the time for the updates. You'll notice some failures on the CI run. If you could clean those up, once we get a clean run we can merge.

@evanchooly evanchooly added this to the 2.3.1 milestone Jan 22, 2023
Copy link
Member

@evanchooly evanchooly left a comment

Choose a reason for hiding this comment

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

changes mentioned in the comments

@evanchooly
Copy link
Member

Thank you for taking the time for the updates. You'll notice some failures on the CI run. If you could clean those up, once we get a clean run we can merge.

mostly, these change can be made by running mvn spotless:apply in core.

I also added a missing use-case from @PrePersist. I still didn't mention that it can take a Document parameter -- I can't think of a use-case for it, so treating it as an implementation detail
@eheimburg
Copy link
Contributor Author

also added a missing use-case from @PrePersist. I still didn't mention that it can take a Document parameter -- I can't think of a use-case for it, so treating as an undocumented implementation detail

@evanchooly evanchooly merged commit b6ccc8f into MorphiaOrg:master Jan 25, 2023
@evanchooly
Copy link
Member

Looks good! Thanks for the patch.

evanchooly pushed a commit that referenced this pull request Jan 25, 2023
* Flesh out the documentation for the core lifecycle annotations

* Comment clean up

I also added a missing use-case from @PrePersist. I still didn't mention that it can take a Document parameter -- I can't think of a use-case for it, so treating it as an implementation detail
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.

None yet

2 participants