-
Notifications
You must be signed in to change notification settings - Fork 233
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
DSClientFactory: AbstractClass Inheritance - Error while creating an instance of class #1022
Comments
Hi @Angoth, I will try to replicate this at my end. |
Hi @devender-yadav, |
Hi @Angoth, I got busy with other tasks. I will get back to you on this by tomorrow. Meanwhile can you please check these entites and testcase related to Inheritance - https://github.com/Impetus/Kundera/tree/c645d7f7e949a0e9f9b06b010e527725a4b0a3d2/src/kundera-cassandra/cassandra-core/src/test/java/com/impetus/kundera/client/crud/inheritence |
Thanks for your fast response. But in my next evaluation step I had some really nasty performance problems and timeout exceptions while persisting a rather complex data model and large datasets on a 4 nodes cluster. Interestingly the performance problems did't occur with DsClient. But the performance problems are another topic... Would be nice to find a solution to the DsClient issue and I'll be awaiting your answer on the issue |
I did some debugging and perhaps here is some helpful information for you... DsClient doesn't seem to have any check for SubTypes. In my opinion it should be in this method:
Whereas ThriftClient is looking for SubTypes and creates the Entities with this information:
|
@Angoth you are right. Implementation for inheritance is not there for DS driver. I am working on it. I need to handle find, query, and relations. Will update you once I make those changes. You can also contribute this feature if you like to work on it. |
I thought about it and looked into it but I'm rather busy at the moment, sorry. So I will wait for your solution :) |
Sure 👍 |
Hi,
I'm currently evaluating Kundera with Datastax Cassandra and ran into some trouble reading my saved object. When I call entityManager.find, I get an ERROR c.i.k.u.KunderaCoreUtils - Error while creating an instance of class exception. The problem is, Kundera calls the Abstract Class constructor via reflections instead of the subclasses' contructors.
I've attached a simple example project with the problem.
Setup:
Datastax Enterprise Version 5.0.3
Cassandra 3.0
Kundera: 3.13
Driver: com.impetus.kundera.client.cassandra.dsdriver.DSClientFactory
Relevant classes:
TestCase:
KunderaIssue.zip
The text was updated successfully, but these errors were encountered: