Error with VaultQuery for entity inheriting from CommonSchemaV1.FungibleState

Description

Reported by Matthieu Merlyn via StackOverflow

results in

Activity

Show:
Jose Coll
April 13, 2018, 12:48 PM

Thanks . Great analysis as usual.
I'll dig into the Hibernate documentation to see how (if) there is a workaround to this because it seems the most natural thing in the world to be able to do.

Reduced to bare bones:

Chris Rankin
April 13, 2018, 1:23 PM

So Corda is asking the JVM for the field's declaring class rather than Hibernate for the column's entity class.

Jose Coll
April 13, 2018, 3:54 PM

Kotlin reflection of fields does not seem to allow access to the `container` class (which is the true @Entity object in this inheritance scenario).
See

Chris Rankin
April 16, 2018, 8:10 AM

So the most reliable way of getting the @Entity class is probably to ask the developer what it is.

Mike Hearn
May 2, 2018, 6:01 PM

Assignee

Michele Sollecito

Reporter

Chris Rankin

Labels

Sprint

None

Epic Link

None

Priority

Medium

Severity

Medium

CVSS Score

None

CVSS Vector

None

Due Date

None

Engineering Teams

None

Fix versions

Affects versions

None

Ported to...

None

Story Points / Dev Days

None
Configure