Error messages

This section contains information on error messages (including how to resolve the issue) you may encounter while working with Dali.

Attribute "<ATTRIBUTE__NAME>" has invalid mapping type in this context

The mapped attribute is invalid. Either change the mapping type or change the entity type.

See "Mapping an entity" for more information.

Attribute "<ATTRIBUTE_NAME>" cannot be resolved.

Dali cannot map the attribute to a database table and column. Verify that you database connection information is correct.

See "Creating a new JPA project" for more information.

Class "<CLASS_NAME>" is not annotated as a persistent class.

The class has not been identified as a persistent class. Configure the class as an Entity, Mapped Superclass, or Embeddable persistent entity.

See "Adding persistence to a class".

Column "<COLUMN_NAME>" cannot be resolved.

You mapped an entity's field to an incorrect or invalid column in the database table. By default, Dali will attempt to map each field in the entity with an identically named row in the database table. If the field's name differs from the row's name, you must explicitly create the mapping.

Map the field to a valid row in the database table as shown in "Mapping an entity".

Duplicate class "<CLASS_NAME>".

You created to persistence classes with the same name. Each Java class must have a unique name. See "Adding persistence to a class" for more information.

Entity does not have an Id or Embedded Id.

You created a persistent entity without identifying its primary key. A persistent entity must have a primary key field designated with an @Id or @EmbeddedId annotation.

Add an ID mapping to the entity as shown in "ID mapping" or "Embedded ID mapping".

Multiple persistence.xml files in project.

You created a JPA project with more than one persistence.xml file. Each JPA project must contain a single persistence.xml file.

See "Managing the persistence.xml file" for more information.

No generator named "<GENERATOR_NAME>" is defined in persistence unit.

You created a persistence entity that uses sequencing, but did not define a sequence generator in the persistence unit. Either define the generator by using an annotation or including it in the XML mapping file.

No persistence unit defined.

There is no persistence unit defined in the persistence.xml file. Use the <persistence-unit name="<PERSISTENCE_UNIT_NAME>" tag to define the persistent unit.

See "Managing the orm.xml file" for more information.

No persistence.xml file in project.

You created a JPA project without a persistence.xml file. Each JPA project must contain a single persistence.xml file.

See "Managing the persistence.xml file" for more information.

Referenced column "<COLUMN_NAME>" in join column "<COLUMN_NAME>" cannot be resolved.

The column that you selected to join a relationship mapping does not exist on the database table. Either select a different column on the Join Table Information or create the necessary column on the database table.

See "JPA Details view (for attributes)" for more information.

Schema "<SCHEMA_NAME>" cannot be resolved for table/join table "<TABLE_NAME>".

Define the default database schema information in the persistence unit.

See "Managing the orm.xml file" for more information.

Table "<TABLE_NAME>" cannot be resolved.

You associated a persistent entity to an incorrect or invalid database table. By default, Dali will attempt to associate each persistent entity with an identically named database table. If the entity's name differs from the table's name, you must explicitly create the association.

Associate the entity with a valid database table as shown in "Adding persistence to a class".

Related concept

Problems view