Inspectopedia
 
2024.3

Unresolved database references in annotations

Error
Sanity
New
Last modified: 03 December 2024

Reports references inside the following Persistence ORM annotations if they cannot be resolved within the configured datasource:

  • Table

  • Column

  • [Any]To[Any]

  • JoinColumn / JoinTable

  • NamedQuery / NativeQuery

  • Embeddable

Suggests refreshing the datasource or assigning a different one.

Example database table:

Example JPA entity class:

NOTE: Datasource can be configured via `Assign datasource` action or the corresponding gutter icon for entity class