Skip to content

Commit f032ae0

Browse files
Replaced @Transient annotation with get() to criteria fields in resolvable implementations to prevent them being included in serialization.
1 parent 832f90f commit f032ae0

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ buildscript {
1414
junit_version = '5.3.1'
1515

1616
onixlabs_group = 'io.onixlabs'
17-
onixlabs_corda_core_release_version = '4.0.2'
18-
onixlabs_corda_idfx_release_version = '4.0.2'
17+
onixlabs_corda_core_release_version = '4.0.3'
18+
onixlabs_corda_idfx_release_version = '4.0.3'
1919

2020
cordapp_platform_version = 11
2121
cordapp_contract_name = 'ONIXLabs Corda BNMS Contract'

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=onixlabs-corda-bnms
22
group=io.onixlabs
3-
version=2.0.0-rc15
3+
version=2.0.0-rc16
44
onixlabs.development.jarsign.keystore=../lib/onixlabs.development.pkcs12
55
onixlabs.development.jarsign.password=5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/relationship/Relationship.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ data class Relationship(
129129
/**
130130
* The vault query criteria which will be used to resolve relationship configurations.
131131
*/
132-
@Transient
133-
override val criteria: QueryCriteria = vaultQuery<RelationshipConfiguration> {
132+
override val criteria: QueryCriteria get() = vaultQuery<RelationshipConfiguration> {
134133
expression(RelationshipConfigurationEntity::relationshipLinearId equalTo relationshipLinearId.id)
135134
}
136135

onixlabs-corda-bnms-contract/src/main/kotlin/io/onixlabs/corda/bnms/contract/relationship/RelationshipConfiguration.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ class RelationshipConfiguration private constructor(
6969
private val relationshipLinearId: UniqueIdentifier
7070
) : AbstractSingularResolvable<Relationship>() {
7171

72-
@Transient
73-
override val criteria: QueryCriteria = vaultQuery<Relationship> {
72+
override val criteria: QueryCriteria get() = vaultQuery<Relationship> {
7473
linearIds(relationshipLinearId)
7574
}
7675

0 commit comments

Comments
 (0)