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>

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

Availability

By default bundled with

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin

Jakarta EE: Persistence (JPA), 241.18072

Last modified: 18 June 2024