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: Cannot resolve column 'USERNAME' less
My Persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
<persistence-unit name="NewPersistenceUnit">
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
<class>Book</class>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"></property>
<property name="hibernate.show_sql" value="true"></property>
</properties>
</persistence-unit>
</persistence>
My class Book where I want to set the name. The Table "Book" cannot be resolved.
@Entity
@Table(name = "BOOK")
public class Book implements Serializable{
@Id
private int id;
}