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

Unique identifiers for generated foreign ref relation #44

Open
kaulbersch opened this issue Dec 19, 2013 · 0 comments
Open

Unique identifiers for generated foreign ref relation #44

kaulbersch opened this issue Dec 19, 2013 · 0 comments

Comments

@kaulbersch
Copy link
Contributor

Until now the method name of a foreign relation inside a generated reference class was created based on the foreign relation identifier only.
${foreignCol.relation.foreignName}
That could result in identical methodnames with identical signature, if multiple references of same type exist.

To avoid that problem the method (relation) name is now generated as tuple of foreign relation identifier and foreign relation identifier local name.
${foreignCol.relation.foreignName}_${foreignCol.relation.localName}

The fix works, but the "quality" of the created DSL is decreased.
QA.hasMembers(Mr.Tester) must now be referenced as QA.hasMembers_belongsTo(Mr.Tester).

The problem must be analysed and a better solution should be found.

kaulbersch added a commit that referenced this issue Dec 19, 2013
Extended identifier generation of foreign relations in Ref.vm.
Updated related sample datasets.
kaulbersch added a commit that referenced this issue Dec 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant