Unresolved database references in XML
Reports Persistence ORM XML descriptors that cannot be resolved within the configured datasource and suggests refreshing the datasource or assigning a different one.
Example database table:
CREATE TABLE DATA_TABLE (
ID INTEGER,
DATA VARCHAR(100)
);
Example JSP file:
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" version="1.0">
<entity name="JavaEntity" class="JavaEntity">
<table name="UNKNOWN_TABLE"/> // Error: unresolved table
<attributes>
<id name="id">
<column name="ID" nullable="false"/>
</id>
<basic name="UNKNOWN_COLUMN"> // Error: unresolved column
<column name="UNKNOWN_COLUMN" length="12"/>
</basic>
</attributes>
</entity>
</entity-mappings>
NOTE: Datasource can be configured via `Assign datasource` action
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Jakarta EE: Persistence (JPA), 233.SNAPSHOT |
Last modified: 13 July 2023