title: Neo4j - Eager load dynamic relationships for a node
body: <p>I asked a related question <a href="https://stackoverflow.com/questions/15148529/neo4j-eager-load-relationships-for-a-node">here</a>. I found that everything goes fine for normal relationship entity like this:</p>
  
  <pre><code>@RelationshipEntity(type="REL")
  public class Rel {
  
      @GraphId
      private Long id;
      @Fetch
      @StartNode
      private User start;
      @Fetch
      @EndNode
      private User end;
  
      public Rel(){}
      public Rel(User start, User end) {
          this.start = start;
          this.end = end;
      }
  }
  </code></pre>
  
  <p>but if I add a dynamic relationship type, I cannnot load the relationship eagerly. </p>
  
  <pre><code>@RelationshipEntity(type="REL")
  public class Rel {
  
      @GraphId
      private Long id;
      @Fetch
      @StartNode
      private User start;
      @Fetch
      @EndNode
      private User end;
  
      // define dynamic relationship type
      // which cause the issue!!!!
      @RelationshipType
      private String type;
  
      public Rel(){}
      public Rel(User start, User end, String type) {
          this.start = start;
          this.end = end;
          this.type = type;
      }
  }
  </code></pre>
  
  <p>What is the issue, and how to solve it?</p>
  
  <p>Any help or advice are welcome. Thanks in advance!</p>