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

XO returns wrong collection size for multiple collections annotated with the same relation #174

Closed
obfischer opened this issue Dec 20, 2019 · 1 comment

Comments

@obfischer
Copy link

Given the following code fragment:

@Relation("HAS_ITEM")
List<YMLSequenceDescriptor> getSequences();

@Relation("HAS_ITEM")
List<YMLMapDescriptor> getMaps();

@Relation("HAS_ITEM")
List<YMLScalarDescriptor> getScalars();

And assuming that any of the three collections contains three elements, then calling .size() on every collection returns 3.

IMHO the correct behaviour would be, that only the collection for sequences should return 3, while all other shoudl return only zero.

@DirkMahler
Copy link
Member

Duplicates #172

I'd like to treat this more as a feature than a bug: The model in the datastore is ambiguous, XO shall be able to compensate for that.

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

2 participants