title: What is the difference between findById() and find<classname>ById()?
body: <p>In my spring data project, there is an entity that looks like:</p>
  <pre><code>public class Employee {
  
      @Id
      @GeneratedValue(strategy= GenerationType.IDENTITY)
      @Column(name=&quot;id&quot;)
      private Integer id;
  
      @Column(name=&quot;category&quot;)
      private Category category;
  
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name=&quot;element_id&quot;)
      private Department department;
  
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name=&quot;agency_id&quot;)
      private Agency agency;
  
      public Employee() {}
  
      // routine getters and setters
  }
  </code></pre>
  <p>In my EmployeeRepository, I find that I can derive a  method, findEmployeeById() that seems to work in exactly the same way as the usual findById() (but I'm not sure).  Can someone explain the difference between these two methods?</p>
  <pre><code>Optional&lt;Employee&gt; findEmployeeById (Integer id);
  </code></pre>
  <p>vs</p>
  <pre><code>Optional&lt;Employee&gt; findById (Integer id);
  </code></pre>
  <p>I &quot;discovered&quot; this by accident via autocomplete in my side (IntelliJ).</p>