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

Fix: domain object's unstable status. #154

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

c5ms
Copy link
Contributor

@c5ms c5ms commented Nov 24, 2024

Why

Currently the domain objects like Cargo have the public modifier for it's fields.

The domain object should not use public modifier for its field since the client(library user) will change the field, this will cause the domain object has an unstable status.

#153

What

  • [change] domain object's field modifiers from public to private
  • [change] remove unexpected setId method for Location
  • [change] add some read method for domain objects.

…the client(library user) will change the field, this will cause the domain object has an unstable status.

the domain object should never have a set method for id since it is immutable.
@c5ms c5ms changed the title the domain object should not use public modifier for its field since … Fix: domain object's unstable status. Nov 24, 2024
@orende orende requested review from orende and mackapappa November 25, 2024 10:19
Copy link
Contributor

@orende orende left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! The code looks ready to merge.

@orende orende merged commit 1ee4a09 into citerus:master Nov 25, 2024
1 check passed
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.

2 participants