@Transient property should be added 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 16:33 UTC
Read the original article Hit count: 196


Hi there, this is a quick question...........

In objects from JPA that is mapping a table, I have some properties that is @Transient, shall I add this properties into 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

Related posts about java

Related posts about jpa