Skip to content

#1268 add Composite Entity pattern - #1705

Merged
ohbus merged 8 commits into
iluwatar:masterfrom
zwebrain:master
Apr 26, 2021
Merged

ohbus merged 8 commits into
iluwatar:masterfrom
zwebrain:master

Conversation

@zwebrain

Copy link
Copy Markdown
Contributor
  • Resolves issue #1268
  • The idea of the pattern is to take advantage of a composite entity to manage multiple dependency objects and adjust the degree of granularity between objects. And it should be noted that the lifetime of dependency objects depends on the coarse-grained object.
  • Additionally, this pattern is common for Entity Beans representing persistent data maintained in a database.

@ohbus ohbus self-assigned this Apr 19, 2021
@ohbus ohbus linked an issue Apr 19, 2021 that may be closed by this pull request

@ohbus ohbus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, take a look at the comments before we merge this PR

Comment on lines +7 to +11
/**
* Date: 4/17/21 - 11:45 AM
*
* @author zwebrain
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove the author tag.

We can use git blame to know these metadata and avoid putting these to code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm sorry. I have removed it.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

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

97.0% 97.0% Coverage
0.0% 0.0% Duplication

@ohbus ohbus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ohbus
ohbus merged commit 09b577f into iluwatar:master Apr 26, 2021
@ohbus

ohbus commented Apr 26, 2021

Copy link
Copy Markdown
Contributor

Thank you so much @zwebrain for your contribution! ㊗️

@all-contributors please add @zwebrain for code

@allcontributors

Copy link
Copy Markdown
Contributor

@ohbus

I've put up a pull request to add @zwebrain! 🎉

@ohbus ohbus added this to the 1.25.0 milestone Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Composite Entity pattern

2 participants