Should @Transient property be used in equals/hashCode/toString?
Posted
by Castanho
on Stack Overflow
See other posts from Stack Overflow
or by Castanho
Published on 2010-06-01T16:17:42Z
Indexed on
2010/06/01
19:03 UTC
Read the original article
Hit count: 139
Hi there, this is a quick question:
I have JPA entities where some properties are annotated with @Transient
.
Shall I use these properties in equals/hashCode/toString
methods?
My first thought is NO but.... I don't know why.
- Tips?
- Ideas?
- Explanations?
Thanks in advance
© Stack Overflow or respective owner