Entity mapping
- Last Updated: March 24, 2022
- 2 minute read
- Corticon
- Version 6.3
- Documentation
Let's look at a sample class that we might have wanted to map to the
Aircraft entity.
We can see in line 6 of this figure that this class is not actually named
Aircraft – it is named MyAircraft. The automatic mapper attempts to locate a class by the same
name as each entity. In the case of Aircraft, it looks
for a class named Aircraft. Not finding one, it leaves
the field empty, as shown in the following figure.
When Java Object mapping has been added to the Vocabulary, its Entity properties are displayed.
| Property | Value |
| Java Package | Specifies the package to be used for Java class metadata mapping. |
| Java Class Name | Maps the entity to the specified class when no class exists with the entity name. |
Because no Aircraft class exists in the
package, we need to manually map this entity, using the Java
Package and Java Class Name
drop-downs, as shown in the following figure. The metadata import process populates the
drop-downs for us. Be sure to select the package name from the Java Package drop-down so the mapper knows where to
look.