* Derives the entity id using the concept id configuration.
*
* @return entity id
*/
public Id getId() {
IdConfig idConfig = getConceptConfig().getIdConfig();
id = new Id(this);
if (!idConfig.isPropertyEmpty()) {
for (String propertyCode : idConfig.getPropertyCodeList()) {
Object property = getProperty(propertyCode);
id.add(propertyCode, property);
}
}
if (!idConfig.isNeighborEmpty()) {
for (String neighborCode : idConfig.getNeighborCodeList()) {
IEntity neighbor = (IEntity) getNeighborEntity(neighborCode);
id.add(neighborCode, neighbor);
}
}
return id;