Documentation Center

DXA is not able to resolve a correct entity class with ambiguous semantic mapping (Java)

The Java version of SDL Digital Experience Accelerator (DXA) is not able to resolve a correct entity class when semantic mapping is ambiguous.

This issues occurs when you create a structure with unclear semantic mapping, and your custom Entity Class has the same mapping as any other Entity Class, for example, when CM schema http://www.sdl.com/web/schemas/core:Article is mapped to com.sdl.dxa.core.Article and your custom class org.example.Article.

To avoid this issue:
  • Make sure that the unqualified class name of your DXA Core View Model is unique and does not conflict with any of the DXA View Models.
  • Make sure that the root element name of your CM Schema is unique and does not conflict with any of the DXA Core Schemas.