title: Basic attribute type should not be IDao - intellij message
body: <p>I am receiving the following message in my Entity object ?</p>
  
  <blockquote>
    <p>Basic attribute type should not be IDao</p>
  </blockquote>
  
  <p>Where it is being used like this :</p>
  
  <pre><code>@Entity
  @Table
  public final class MyEnity {
  
      @Resource(name = "Dao")
      private IDao dao;
  </code></pre>
  
  <p>I know the name is bad, but what is the problem with injecting my Dao(annotated with repository) into my Domain object that is annotated as a hibernate entity ? And IDao is an interface implemented by Dao class ... </p>