KleeGroup / kinetix-tools

Toolbox for Kinetix
Apache License 2.0
1 stars 2 forks source link

[ModGen] CodeStyle error with DO_ALIAS #5

Open c3dr0x opened 6 years ago

c3dr0x commented 6 years ago

When you have an entity that have to associations with a table, you set roles on those. If a DTO reference only one of the association it keeps the role but the generator issue a CodeStyle. It shoudn't.

c3dr0x commented 6 years ago

I have an entity BER that have two FKs linking a second entity Intervenant.

To do that, I need to set a role on each link from BER to Intervenant.

image

In my DTO I only need to reference one of those two links. So to be coherent I want to keep the role information to know at all times which of the both links I'm referencing.

image

If I do, the generator gives me a CodeStyle error saying that I can only use role if I have two links or more.

[CodeStyle] -  : Referentiel_Metier.oom Classe BerDto : La propriété [IntervenantCodePropose] est la seule à référencer la classe ReferentielData.ReferentielDataContract.Intervenant, elle ne doit pas avoir de rôle.