title: Lombok excluding field with @ToString.Exclude is not working
body: <p>I'm using Lombok to remove boilerplate code.  I'm attempting to print out an entity to the console but I'm getting a StackOverflowError.  The entity has a bidirectional relationship with another entity, so I want to exclude this entity from the toString method.</p>
  
  <p>My entity looks like this:</p>
  
  <pre><code>@Entity
  @Data
  public class Foo {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private long fooId;
  
      private String name;
  
      @ManyToOne
      @JoinColumn(name = "barId")
      @EqualsAndHashCode.Exclude
      @ToString.Exclude
      private Bar bar; 
  }
  </code></pre>
  
  <p>This is my first time attempting to use <code>@ToString.Exclude</code> and it doesn't appear to be behaving.  Am I using it incorrectly? I just want to print out <code>fooId</code> and <code>name</code> when I call toString on the Foo object.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I'm familiar with alternate approaches to excluding or including fields from a top level <code>@ToString</code> annotation.  I'm attempting to avoid that.  I just want to use <code>@Data</code> at the class level, and annotate the fields that should be excluded.</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>Still replicating on a simplified class.  Lombok version 1.18.8.</p>
  
  <p><a href="https://i.stack.imgur.com/g3Z8T.png" rel="noreferrer"><img src="https://i.stack.imgur.com/g3Z8T.png" alt="enter image description here"></a></p>