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>
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
JpaORMDomInspection- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Jakarta EE: Persistence (JPA), 242.22892 |
Last modified: 11 September 2024