Inspectopedia 2025.3 Help

Spring Data JDBC aggregate roots

An entity within a Spring Data JDBC aggregate is referencing another entity that already belongs to a different aggregate. In Spring Data JDBC, every reference to another entity must remain strictly within the boundaries of the same aggregate. Cross-aggregate relationships cannot be expressed as direct entity references; they should instead be modeled using the identifier of the target aggregate (for example, storing the foreign key as a simple value type). Spring Data Documentation

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.

SpringDataJdbcEntityInSeveralAggregatesInspection
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 | Spring | Spring Data

Inspection ID: SpringDataJdbcEntityInSeveralAggregatesInspection

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection SpringDataJdbcEntityInSeveralAggregatesInspection

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2025.3, Qodana for JVM 2025.3,

Last modified: 03 December 2025