title: Is it possible JPA/Hibernate use ManyToOne with only parent field?
body: <p>I try make relationship between my Menus entity with only one field: <strong><em>Parent</em></strong></p>
  
  <p>I do this like:</p>
  
  <pre><code>@Entity
  @Table
  @Getter @Setter
  public class ProductCategory extends BaseEntity {
      @Column
      private String name;
  
      @Column
      private String description;
  
      @ManyToOne
      @JoinColumn(name = "PARENT_ID")
      private ProductCategory parent;
  }
  </code></pre>
  
  <p>but I got <em>Direct self-reference leading to cycle</em> error. Is it possible use only one field for relation? or I must define <strong><em>child</em></strong> field as JsonManagedReference?</p>