title: Can we use @autowired on an entity object in spring?
body: <p>I have a entity class called <code>Customer</code>, I am using this entity object in another class to set the data. When I use this object below like</p>
  
  <pre><code>@Autowired
  Customer customer
  </code></pre>
  
  <p>Spring is complaining  that please configure the bean in your classes.</p>
  
  <p>Can we use auto wiring with entity objects?</p>