title: Spring Data query from method doesn't recognize column
body: <p>I am using Spring Data, I have created my entities wrapped inside of an &quot;AbstractEntity&quot; which all objects extend to get basic columns</p>
  <p>AbstractEntity:</p>
  <pre><code>@MappedSuperclass
  public abstract class AbstractEntity implements Serializable{
  
      @Temporal(TemporalType.TIMESTAMP)
      @Column(nullable = false)
      private Date CreatedDate;
  
      @PrePersist
      protected void onCreate() {
          UpdatedDate = CreatedDate = new Date();
      }
  
  ...
  </code></pre>
  <p>And my Object/Entity</p>
  <pre><code>@Entity
  public class Trade extends AbstractEntity {
  </code></pre>
  <p>When I attempt to use my repository to create a method to <code>findByCreatedDateAfter(Date date)</code></p>
  <p>I get an exception that the column can't be found...?</p>
  <pre><code>public interface TradeRepository extends CrudRepository&lt;Trade, Long&gt;{
  
      public List&lt;Trade&gt; findByCreatedDateAfter(Date date);
  }
  </code></pre>
  <p>It compiles (if I use certain capitolization) but than attempting to map the query, I get:</p>
  <pre><code>Caused by: java.lang.IllegalArgumentException: Unable to locate Attribute  with the given name [createdDate] on this ManagedType [streaming.data.AbstractEntity]
  </code></pre>
  <p>I also would like to return the <code>sum(amount)</code> of one of the amount column for this period.</p>