Default id is added if an entity has only external identifiers

Description

I'm using Andromda 3.4 with uml 1.4.
I have an entity (EntityC in my example) that has two external identifiers one from EntityA and another from EntityB, (see the attached screenshot for a graphic design).

Entity A:
<<Identifier>> idEntityA

EntityB:
<<Identifier>> idEntityB

EntityC:
has two external identifiers from EntityA and EntityB

This is the EntityC.hbm.xml generated by the hibernate cartridge:

As you can see AndroMDA adds an extra automatic ID when it is not required.
I think because it doesn't count the external identifiers as identifiers.

I tracked down the code and:

Inside andromda-metafacades-uml14 is a candidate for a fix. I'll provide a patch when i figure out what to do.

WORKAROUND:
disable the automatic id generation placing:

into andromda.xml and disabling the validation rule:

[Data::it.tyto.iia::domain::EntityC]:Each entity must have at least one identifier defined.

Environment

None

Assignee

Former user

Reporter

GabrieleC

Labels

Components

Affects versions

Priority

Minor
Configure