-
Notifications
You must be signed in to change notification settings - Fork 166
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
Generic abstract RelationshipEntity not working #66
Comments
As soon as published, the following workaround came to my mind: Use another base class (or interface) for the NodeEntities and code against them. This removes the need for generics. Here's a working example:
|
Fixed in 2.0.0-SNAPSHOT |
I'm using version 2.0.3, and I'm still getting this exception on generic relations. Classes example
|
This is still broken. Reopening. |
Fixed in master (for 3.0.0 release). It still won't work for
use cases, but should work for
We use the types in query generation so this can't be (at the moment) completely generic. |
I started looking at Neo4j today and am now running some tests with OGM. The library is really awesome, thanks for your work! However, when playing around with model abstractions, I encountered the following setup which throws an exception:
The code I test with is
And here comes the exception:
It's interesting, as the base class without the generic types S and T does work as expected (although this breaks the reusability of the base relationship entity):
The text was updated successfully, but these errors were encountered: