title: Implement a generic interface
body: <p>I have a generic interface and I would like to implement this interface in a generic way :</p>
  
  <pre><code>public interface BaseBean&lt;T&gt; {
  
      public T create(T t);
      public T read(Long id);
      public T update(T t);
      public void delete(T t);
  
  }
  </code></pre>
  
  <p>For some reason, I can't make the implementation generic as well. Eclipse implements all interface methods in non-generic way:</p>
  
  <pre><code>public class BaseBeanImpl&lt;T&gt; implements NewBaseBean {
  
      @Override
      public Object create(Object t) {
          return null;
      }
  
      @Override
      public Object read(Long id) {
          return null;
      }
  
      @Override
      public Object update(Object t) {
          return null;
      }
  
      @Override
      public void delete(Object t) {
      }
  
      @Override
      public Object find(Long id) {
          return null;
      }
  }
  </code></pre>
  
  <p>When I change:</p>
  
  <pre><code>public Object create(Object t)
  </code></pre>
  
  <p>to </p>
  
  <pre><code>public T create(T t)
  </code></pre>
  
  <p>I get a compile error. Did I miss something?</p>