Inspectopedia Help

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

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Jakarta EE: Persistence (JPA), 241.16690

Last modified: 29 April 2024