title: Spring Data - No property after found for type java.util.Date
body: <p>I've been struggling with something for the last 2 days and can't fugure it up.
  I'm using Java 7, Spring data jpa 1.0 and Hibernate 4.3.1.Final.
  I'm trying to make a query that would fetch based on date. I've trimmed the code to make readable</p>
  
  <p>All dates are java.util.Date</p>
  
  <pre><code>@Entity
  @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
  public abstract class Informe {
      @Id
      @GeneratedValue(strategy = GenerationType.TABLE)
      @Column(name = "ID")
      private Long id;
  
      @OneToOne(fetch=FetchType.LAZY, cascade = CascadeType.ALL)
      @JoinColumn(name="COMUNICACION_ID")
      private Comunicacion comunicacion;
  
      public Comunicacion getComunicacion() {
          return comunicacion;
      }
  
      public void setComunicacion(Comunicacion comunicacion) {
          this.comunicacion = comunicacion;
      }
  }
  
  @Entity
  @Table(name = "REGISTRO_CALIFICACION")
  public class RegistroCalificacion extends Informe {
  }
  
  @Entity
  @Table(name = "COMUNICACION")
  public class Comunicacion {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "ID")
      private Long id;
      @Basic
      @javax.persistence.Column(name = "FECHA_PUBLICACION_DESDE", nullable = false, insertable = true,     updatable = true, length = 19, precision = 0)
      private Date fechaPublicacionDesde;
  
      public Date getFechaPublicacionDesde() {
          return fechaPublicacionDesde;
      }
  
      public void setFechaPublicacionDesde(Date fechaPublicacionDesde) {
          this.fechaPublicacionDesde = fechaPublicacionDesde;
      }
  }
  
  public interface InformeRepository extends BaseRepository&lt;Informe, Long&gt; {
      List&lt;RegistroCalificacion&gt; findByComunicacionFechaPublicacionDesdeAfter(Date date);
  
  }
  </code></pre>
  
  <p>This throws  this exception while creating the beans</p>
  
  <pre><code>Caused by: org.springframework.data.mapping.PropertyReferenceException: No property after found for type java.util.Date
  </code></pre>
  
  <p>But If I access directly to Comunicación, like below, it works fine.</p>
  
  <pre><code>public interface ComunicacionRepository extends BaseRepository&lt;Comunicacion, Long&gt; {
  
     List&lt;Comunicacion&gt; findByFechaPublicacionDesdeBefore(Date date);
  }
  </code></pre>
  
  <p>I've tried using @Query and I get the same result.
  Any thoughts?</p>