title: Name attribute in @Entity and @Table
body: <p>I have a doubt, because name attribute is there in both @Entity and @Table</p>
  
  <p>For example, I'm allowed to have same value for name attribute </p>
  
  <pre><code>@Entity(name = "someThing")
  @Table(name = "someThing")
  </code></pre>
  
  <p>and I can have different names as well for same class</p>
  
  <pre><code> @Entity(name = "someThing")
   @Table(name = "otherThing")
  </code></pre>
  
  <p>Can anybody tell me what is the difference between these two and why we have same attribute in both?</p>