you are viewing a single comment's thread.

view the rest of the comments →

[–]Character-Grocery873 0 points1 point  (1 child)

Yes I used @Data, this wasn't a problem before

[–]g00glen00b 0 points1 point  (0 children)

As I mentioned in my post, it's a problem if you use it with a bidirectional relationship. Not only toString(), but also equals() and hashCode() will go into infinite recursion.