title: Java EE - IntelliJ - javax.persistence.Table - table name cannot be resolved
body: <p>I am trying to resolve this problem since 3 days, I cannot solve it. I read about, that IntelliJ is mixing up something. I found that thread and similar answers in other threads, and tried to to exactly the same, but it did not work: <a href="https://stackoverflow.com/questions/32660977/cannot-resolve-column-username-less">Cannot resolve column &#39;USERNAME&#39; less</a></p>
  
  <p>My Persistence.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0"&gt;
      &lt;persistence-unit name="NewPersistenceUnit"&gt;
          &lt;jta-data-source&gt;java:jboss/datasources/ExampleDS&lt;/jta-data-source&gt;
          &lt;class&gt;Book&lt;/class&gt;
          &lt;properties&gt;
              &lt;property name="hibernate.hbm2ddl.auto" value="create-drop"&gt;&lt;/property&gt;
              &lt;property name="hibernate.show_sql" value="true"&gt;&lt;/property&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>My class Book where I want to set the name. The Table "Book" cannot be resolved.</p>
  
  <pre><code> @Entity    
   @Table(name = "BOOK")
          public class Book implements Serializable{
  
              @Id
              private int id;
  
          }
  </code></pre>