title: Spring Data REST Joined Inheritance Issue
body: <p>I have a Spring Data <code>Repository</code> over a single JPA entity.  This entity is subclassed via joined inheritance.</p>
  
  <p>Spring Data REST seems to have a problem interpreting this structure, at least automatically.  Or maybe I'm misunderstanding the usage of <code>Inheritance.JOINED</code></p>
  
  <p>Any request for any entity with an <code>Event</code> returns the following:</p>
  
  <pre><code>{
      cause: null,
      message: "Cannot create self link for class com.foo.event.SubEvent! No persistent entity found!"
  }
  </code></pre>
  
  <p>Maybe I'm asking too much for this project to know how to handle this, but is there a workaround that would group all of my <code>Events</code> under the same <code>/events</code>? Maybe even allowing me to filter on type?</p>
  
  <p>I've left the basics of the application structure below.</p>
  
  <p><em>Event.java</em></p>
  
  <pre><code>@Entity
  @Inheritance(strategy = InheritanceType.JOINED)
  @JsonTypeInfo(use = Id.NAME, include = As.PROPERTY, property = "type")
  @JsonSubTypes({
    @Type(value = SubEvent.class), 
    ...
  })
  ...
  public class Event {
      @Id
      private long id;
      ...
  }
  </code></pre>
  
  <p><em>SubEvent.java</em></p>
  
  <pre><code>@Entity
  public class SubEvent extends Event {
      private String code;
      ...
  }
  </code></pre>
  
  <p><em>EventRepository.java</em></p>
  
  <pre><code>@RepositoryRestResource(path = "events")
  public interface EventRepository extends PagingAndSortingRepository&lt;Event, Long&gt; {
      ...    
  }
  </code></pre>