Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ModGen] CodeStyle error with DO_ALIAS #5

Open
c3dr0x opened this issue Jun 7, 2018 · 1 comment
Open

[ModGen] CodeStyle error with DO_ALIAS #5

c3dr0x opened this issue Jun 7, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@c3dr0x
Copy link
Member

c3dr0x commented Jun 7, 2018

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.

@durandx durandx added the enhancement New feature or request label Jul 5, 2018
@c3dr0x
Copy link
Member Author

c3dr0x commented Jul 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants