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

Testing equals contract for hibernate entities. #89

Closed
GoogleCodeExporter opened this issue Mar 29, 2015 · 6 comments
Closed

Testing equals contract for hibernate entities. #89

GoogleCodeExporter opened this issue Mar 29, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What feature do you request?
EqualsVerifier may check weather class in hibernate @Entity or @Embeddable.
There are few additional checks that should be done in this case:
- id should not be used to test equality
- both equal and hashCode should use properties, not fields (lazy loading)
... and probably more cases I cannot think about now

What problem will this feature solve?
Testing equals contract for hibernate entities.

Please provide any additional information below.


Original issue reported on code.google.com by Dzafar.S...@gmail.com on 10 Apr 2014 at 8:38

@GoogleCodeExporter
Copy link
Author

Typo: I meant 'whether' not 'weather'

Original comment by Dzafar.S...@gmail.com on 10 Apr 2014 at 8:41

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Hi Dzafar,

Thanks for the suggestions! I like them, and I'll probably add them in a future 
version.


Jan

Original comment by jan.ouw...@gmail.com on 12 Apr 2014 at 12:47

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Your project is great and has already saved me much time while testing. 

Thank You! :)

Original comment by Dzafar.S...@gmail.com on 12 Apr 2014 at 1:07

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

FYI, this may be relevant: http://stackoverflow.com/a/19542667/77115

Original comment by hjo1...@gmail.com on 27 May 2014 at 8:54

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Thanks, I'll certainly take that into consideration when I get to this!

Original comment by jan.ouw...@gmail.com on 27 May 2014 at 9:02

  • Added labels: ****
  • Removed labels: ****

@jqno
Copy link
Owner

jqno commented Sep 26, 2018

Since this issue has been stale for a very long time, and some support for Hibernate did make it into EqualsVerifier, I'll go ahead and close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants