title: How to relate two entities in Jhipster JDL?
body: <p>Let's say you have a Jhipster app that has a Profile and needs to register which Profiles follows other profiles with 2 attributes: one for the user that is following (user Profile) and another for the followed user (followed Profile). Something like:</p>
  
  <pre><code>entity Profile {
      creationDate Instant required
  }
  
  entity Follows {
    creationDate Instant
  }
  
  relationship OneToMany {
      Profile{follows(user)} to Follows{profile(id)}
      Profile{follows(followed)} to Follows{profile(id)}
  }
  </code></pre>
  
  <p>The problem with this is that the Follows.java has 2 identical atributes even when the names are different follows(user) &amp; follows(followed):</p>
  
  <pre><code>@ManyToOne
  private Profile profile;
  </code></pre>
  
  <p>... instead of...</p>
  
  <pre><code>@ManyToOne
  private Profile user;
  
  @ManyToOne
  private Profile followed;
  </code></pre>
  
  <p>Thanks.</p>