Orm.xml problems
Reports unresolved references to any database objects inside `orm.xml` configuration files:
Tables
Columns
Schemas
Catalogs
Sequences
Example database table:
CREATE TABLE DATA_TABLE (
ID INTEGER,
DATA VARCHAR(100)
);
Example orm.xml file:
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" version="1.0">
<package>example</package>
<entity name="JavaEntity" class="JavaEntity">
<table name="DATA_TABLE"/>
<attributes>
<id name="id">
<column name="UNKNOWN_ID" nullable="false" length="20"/> // Error: unresolved column name
</id>
<basic name="data">
<column name="DATA" length="12"/> // Good
</basic>
</attributes>
</entity>
</entity-mappings>
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