Inspectopedia 2024.3 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>

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.

Settings or Preferences | Editor | Inspections | JPA

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.3, Qodana for JVM 2024.3,

Can be installed with plugin:

Jakarta EE: Persistence (JPA), 243.23126

Last modified: 03 December 2024