8000 Equals should return false for different subclasses that use same id · Issue #2 · wimdeblauwe/jpearl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Equals should return false for different subclasses that use same id #2

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

Closed
wimdeblauwe opened this issue Sep 27, 2021 · 0 comments
Closed
Milestone

Comments

@wimdeblauwe
Copy link
Owner

The equals methods of AbstractEntityId and AbstractEntity will currently return true for different subclasses if they have the same id value (E.g. they both use Long for example, and both are assigned the value 1).

This is not ok, we should consider different subclasses as different objects.

@wimdeblauwe wimdeblauwe added this to the 1.1.0 milestone Sep 27, 2021
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

No branches or pull requests

1 participant
0