mirror of
https://github.com/corda/corda.git
synced 2025-01-31 00:24:59 +00:00
Merge pull request #466 from corda/clint-manualkapt
Kapt now must be run manually in order for IntelliJ to compile Corda.
This commit is contained in:
commit
63a70f46a4
@ -60,6 +60,11 @@ If IDEA refuses to open a project because an SDK has not been selected, you may
|
||||
|
||||
If you are having trouble selecting the correct JDK, the JetBrains website provides the `following guidelines <https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under>`_.
|
||||
|
||||
IDEA fails to compile in VaultSchemaTest.kt
|
||||
*******************************************
|
||||
|
||||
Run ``gradlew kaptKotlin`` to generate the sources IntelliJ is missing.
|
||||
|
||||
Kotlin plugin
|
||||
*************
|
||||
|
||||
|
@ -85,6 +85,10 @@ out the latest release tag instead by running ``git checkout release-M9.2``.
|
||||
Opening Corda/CorDapps in IDEA
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. warning:: If you choose to use IntelliJ you must run the ``gradlew kaptKotlin`` task before attempting to compile via IntelliJ.
|
||||
|
||||
.. note:: If you change branch , gradle clean or see a compile error in ``VaultSchemaTest.kt`` you must also then re-run `gradlew kaptKotlin`
|
||||
|
||||
When opening a Corda project for the first time from the IDEA splash screen, please click "Open" rather than "Import Project",
|
||||
and then import the Gradle project by clicking "Import Gradle project" in the popup bubble on the lower right-hand side of the screen.
|
||||
If you instead pick "Import Project" on the splash screen, a bug in IDEA will cause Corda's pre-packaged run configurations to be erased.
|
||||
|
@ -5,30 +5,6 @@ apply plugin: 'net.corda.plugins.publish-utils'
|
||||
|
||||
description 'Corda node database schemas'
|
||||
|
||||
buildscript {
|
||||
ext.generatedSourcesDir = "${projectDir}/generated/source/kapt/main"
|
||||
}
|
||||
|
||||
// Kapt plugin is hardcoded in output directory and sourcesets. Use a separate sourceset to keep the generated
|
||||
// files in git and outside of the build directory (to avoid cleaning issues)
|
||||
sourceSets {
|
||||
main {
|
||||
kotlin {
|
||||
srcDir "${buildDir}/generated/source/kapt/main/"
|
||||
}
|
||||
}
|
||||
generated {
|
||||
java {
|
||||
srcDir generatedSourcesDir
|
||||
compileClasspath += sourceSets.main.compileClasspath + sourceSets.main.output
|
||||
}
|
||||
}
|
||||
test {
|
||||
compileClasspath += sourceSets.generated.output + sourceSets.main.compileClasspath
|
||||
runtimeClasspath += compileClasspath
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':core')
|
||||
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
||||
@ -41,39 +17,10 @@ dependencies {
|
||||
testCompile "com.h2database:h2:$h2_version"
|
||||
}
|
||||
|
||||
// Generated files will be removed by gradle clean. Since we aren't running kapt every time we must preserve these files
|
||||
// Note: The lines that actually invoke kapt are those in the project.afterEvaluate block.
|
||||
task buildKapt(type: Copy) {
|
||||
from "${buildDir}/generated"
|
||||
into "${projectDir}/generated"
|
||||
}
|
||||
|
||||
// Kapt hijacks anything named "compile"
|
||||
task buildGenerated(type: JavaCompile) {
|
||||
source = sourceSets.generated.allJava
|
||||
classpath = sourceSets.generated.compileClasspath + sourceSets.main.compileClasspath + sourceSets.main.output
|
||||
destinationDir = file("$buildDir/classes/generated")
|
||||
}
|
||||
|
||||
// Remove the dependency on compile in kapt to avoid automatic kapt running - run :node-schemas:kaptKotlin explicitly.
|
||||
project.afterEvaluate {
|
||||
jar.dependsOn.each { jar.dependsOn.remove it }
|
||||
buildGenerated.dependsOn.each { buildGenerated.dependsOn.remove it }
|
||||
jar.dependsOn buildGenerated
|
||||
compileTestKotlin.dependsOn buildGenerated
|
||||
buildGenerated.dependsOn classes
|
||||
compileKotlin.dependsOn.remove kaptKotlin
|
||||
compileTestKotlin.dependsOn.remove kaptTestKotlin
|
||||
buildKapt.dependsOn kaptKotlin
|
||||
buildKapt.mustRunAfter kaptKotlin
|
||||
}
|
||||
|
||||
jar {
|
||||
from sourceSets.generated.output
|
||||
}
|
||||
|
||||
idea {
|
||||
module {
|
||||
sourceDirs += project.sourceSets.generated.allSource
|
||||
sourceSets {
|
||||
main {
|
||||
kotlin {
|
||||
srcDir "$buildDir/generated/source/kapt/main"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,153 +0,0 @@
|
||||
// Generated file do not edit, generated by io.requery.processor.EntityProcessor
|
||||
package net.corda.node.services.persistence.schemas;
|
||||
|
||||
import io.requery.Persistable;
|
||||
import io.requery.meta.AttributeBuilder;
|
||||
import io.requery.meta.AttributeDelegate;
|
||||
import io.requery.meta.Type;
|
||||
import io.requery.meta.TypeBuilder;
|
||||
import io.requery.proxy.EntityProxy;
|
||||
import io.requery.proxy.Property;
|
||||
import io.requery.proxy.PropertyState;
|
||||
import io.requery.util.function.Function;
|
||||
import io.requery.util.function.Supplier;
|
||||
import java.lang.Object;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import javax.annotation.Generated;
|
||||
import net.corda.core.crypto.SecureHash;
|
||||
|
||||
@Generated("io.requery.processor.EntityProcessor")
|
||||
public class AttachmentEntity implements Attachment, Persistable {
|
||||
public static final AttributeDelegate<AttachmentEntity, SecureHash> ATT_ID = new AttributeDelegate(
|
||||
new AttributeBuilder<AttachmentEntity, SecureHash>("att_id", SecureHash.class)
|
||||
.setProperty(new Property<AttachmentEntity, SecureHash>() {
|
||||
@Override
|
||||
public SecureHash get(AttachmentEntity entity) {
|
||||
return entity.attId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(AttachmentEntity entity, SecureHash value) {
|
||||
entity.attId = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getAttId")
|
||||
.setPropertyState(new Property<AttachmentEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(AttachmentEntity entity) {
|
||||
return entity.$attId_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(AttachmentEntity entity, PropertyState value) {
|
||||
entity.$attId_state = value;
|
||||
}
|
||||
})
|
||||
.setKey(true)
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<AttachmentEntity, byte[]> CONTENT = new AttributeDelegate(
|
||||
new AttributeBuilder<AttachmentEntity, byte[]>("content", byte[].class)
|
||||
.setProperty(new Property<AttachmentEntity, byte[]>() {
|
||||
@Override
|
||||
public byte[] get(AttachmentEntity entity) {
|
||||
return entity.content;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(AttachmentEntity entity, byte[] value) {
|
||||
entity.content = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getContent")
|
||||
.setPropertyState(new Property<AttachmentEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(AttachmentEntity entity) {
|
||||
return entity.$content_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(AttachmentEntity entity, PropertyState value) {
|
||||
entity.$content_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.setConverter(new net.corda.core.schemas.requery.converters.BlobConverter())
|
||||
.build());
|
||||
|
||||
public static final Type<AttachmentEntity> $TYPE = new TypeBuilder<AttachmentEntity>(AttachmentEntity.class, "attachments")
|
||||
.setBaseType(Attachment.class)
|
||||
.setCacheable(true)
|
||||
.setImmutable(false)
|
||||
.setReadOnly(false)
|
||||
.setStateless(false)
|
||||
.setFactory(new Supplier<AttachmentEntity>() {
|
||||
@Override
|
||||
public AttachmentEntity get() {
|
||||
return new AttachmentEntity();
|
||||
}
|
||||
})
|
||||
.setProxyProvider(new Function<AttachmentEntity, EntityProxy<AttachmentEntity>>() {
|
||||
@Override
|
||||
public EntityProxy<AttachmentEntity> apply(AttachmentEntity entity) {
|
||||
return entity.$proxy;
|
||||
}
|
||||
})
|
||||
.addAttribute(ATT_ID)
|
||||
.addAttribute(CONTENT)
|
||||
.build();
|
||||
|
||||
private PropertyState $attId_state;
|
||||
|
||||
private PropertyState $content_state;
|
||||
|
||||
private SecureHash attId;
|
||||
|
||||
private byte[] content;
|
||||
|
||||
private final transient EntityProxy<AttachmentEntity> $proxy = new EntityProxy<AttachmentEntity>(this, $TYPE);
|
||||
|
||||
public AttachmentEntity() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SecureHash getAttId() {
|
||||
return $proxy.get(ATT_ID);
|
||||
}
|
||||
|
||||
public void setAttId(SecureHash attId) {
|
||||
$proxy.set(ATT_ID, attId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] getContent() {
|
||||
return $proxy.get(CONTENT);
|
||||
}
|
||||
|
||||
public void setContent(byte[] content) {
|
||||
$proxy.set(CONTENT, content);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof AttachmentEntity && ((AttachmentEntity)obj).$proxy.equals(this.$proxy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return $proxy.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return $proxy.toString();
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Generated file do not edit, generated by io.requery.processor.EntityProcessor
|
||||
package net.corda.node.services.persistence.schemas;
|
||||
|
||||
import io.requery.meta.EntityModel;
|
||||
import io.requery.meta.EntityModelBuilder;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated("io.requery.processor.EntityProcessor")
|
||||
public class Models {
|
||||
public static final EntityModel PERSISTENCE = new EntityModelBuilder("persistence")
|
||||
.addType(AttachmentEntity.$TYPE)
|
||||
.build();
|
||||
|
||||
private Models() {
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
// Generated file do not edit, generated by io.requery.processor.EntityProcessor
|
||||
package net.corda.node.services.vault.schemas;
|
||||
|
||||
import io.requery.meta.EntityModel;
|
||||
import io.requery.meta.EntityModelBuilder;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated("io.requery.processor.EntityProcessor")
|
||||
public class Models {
|
||||
public static final EntityModel VAULT = new EntityModelBuilder("vault")
|
||||
.addType(VaultStatesEntity.$TYPE)
|
||||
.addType(VaultCashBalancesEntity.$TYPE)
|
||||
.addType(VaultTxnNoteEntity.$TYPE)
|
||||
.build();
|
||||
|
||||
private Models() {
|
||||
}
|
||||
}
|
@ -1,168 +0,0 @@
|
||||
// Generated file do not edit, generated by io.requery.processor.EntityProcessor
|
||||
package net.corda.node.services.vault.schemas;
|
||||
|
||||
import io.requery.Persistable;
|
||||
import io.requery.meta.AttributeBuilder;
|
||||
import io.requery.meta.AttributeDelegate;
|
||||
import io.requery.meta.Type;
|
||||
import io.requery.meta.TypeBuilder;
|
||||
import io.requery.proxy.EntityProxy;
|
||||
import io.requery.proxy.LongProperty;
|
||||
import io.requery.proxy.Property;
|
||||
import io.requery.proxy.PropertyState;
|
||||
import io.requery.util.function.Function;
|
||||
import io.requery.util.function.Supplier;
|
||||
import java.lang.Long;
|
||||
import java.lang.Object;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated("io.requery.processor.EntityProcessor")
|
||||
public class VaultCashBalancesEntity implements VaultSchema.VaultCashBalances, Persistable {
|
||||
public static final AttributeDelegate<VaultCashBalancesEntity, String> CURRENCY = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultCashBalancesEntity, String>("currency_code", String.class)
|
||||
.setProperty(new Property<VaultCashBalancesEntity, String>() {
|
||||
@Override
|
||||
public String get(VaultCashBalancesEntity entity) {
|
||||
return entity.currency;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultCashBalancesEntity entity, String value) {
|
||||
entity.currency = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getCurrency")
|
||||
.setPropertyState(new Property<VaultCashBalancesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultCashBalancesEntity entity) {
|
||||
return entity.$currency_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultCashBalancesEntity entity, PropertyState value) {
|
||||
entity.$currency_state = value;
|
||||
}
|
||||
})
|
||||
.setKey(true)
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.setLength(3)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultCashBalancesEntity, Long> AMOUNT = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultCashBalancesEntity, Long>("amount", long.class)
|
||||
.setProperty(new LongProperty<VaultCashBalancesEntity>() {
|
||||
@Override
|
||||
public Long get(VaultCashBalancesEntity entity) {
|
||||
return entity.amount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultCashBalancesEntity entity, Long value) {
|
||||
if(value != null) {
|
||||
entity.amount = value;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getLong(VaultCashBalancesEntity entity) {
|
||||
return entity.amount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLong(VaultCashBalancesEntity entity, long value) {
|
||||
entity.amount = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getAmount")
|
||||
.setPropertyState(new Property<VaultCashBalancesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultCashBalancesEntity entity) {
|
||||
return entity.$amount_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultCashBalancesEntity entity, PropertyState value) {
|
||||
entity.$amount_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.setDefaultValue("0")
|
||||
.build());
|
||||
|
||||
public static final Type<VaultCashBalancesEntity> $TYPE = new TypeBuilder<VaultCashBalancesEntity>(VaultCashBalancesEntity.class, "vault_cash_balances")
|
||||
.setBaseType(VaultSchema.VaultCashBalances.class)
|
||||
.setCacheable(true)
|
||||
.setImmutable(false)
|
||||
.setReadOnly(false)
|
||||
.setStateless(false)
|
||||
.setView(false)
|
||||
.setFactory(new Supplier<VaultCashBalancesEntity>() {
|
||||
@Override
|
||||
public VaultCashBalancesEntity get() {
|
||||
return new VaultCashBalancesEntity();
|
||||
}
|
||||
})
|
||||
.setProxyProvider(new Function<VaultCashBalancesEntity, EntityProxy<VaultCashBalancesEntity>>() {
|
||||
@Override
|
||||
public EntityProxy<VaultCashBalancesEntity> apply(VaultCashBalancesEntity entity) {
|
||||
return entity.$proxy;
|
||||
}
|
||||
})
|
||||
.addAttribute(CURRENCY)
|
||||
.addAttribute(AMOUNT)
|
||||
.build();
|
||||
|
||||
private PropertyState $currency_state;
|
||||
|
||||
private PropertyState $amount_state;
|
||||
|
||||
private String currency;
|
||||
|
||||
private long amount;
|
||||
|
||||
private final transient EntityProxy<VaultCashBalancesEntity> $proxy = new EntityProxy<VaultCashBalancesEntity>(this, $TYPE);
|
||||
|
||||
public VaultCashBalancesEntity() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCurrency() {
|
||||
return $proxy.get(CURRENCY);
|
||||
}
|
||||
|
||||
public void setCurrency(String currency) {
|
||||
$proxy.set(CURRENCY, currency);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getAmount() {
|
||||
return $proxy.get(AMOUNT);
|
||||
}
|
||||
|
||||
public void setAmount(long amount) {
|
||||
$proxy.set(AMOUNT, amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof VaultCashBalancesEntity && ((VaultCashBalancesEntity)obj).$proxy.equals(this.$proxy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return $proxy.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return $proxy.toString();
|
||||
}
|
||||
}
|
@ -1,576 +0,0 @@
|
||||
// Generated file do not edit, generated by io.requery.processor.EntityProcessor
|
||||
package net.corda.node.services.vault.schemas;
|
||||
|
||||
import io.requery.Persistable;
|
||||
import io.requery.meta.AttributeBuilder;
|
||||
import io.requery.meta.AttributeDelegate;
|
||||
import io.requery.meta.Type;
|
||||
import io.requery.meta.TypeBuilder;
|
||||
import io.requery.proxy.EntityProxy;
|
||||
import io.requery.proxy.IntProperty;
|
||||
import io.requery.proxy.Property;
|
||||
import io.requery.proxy.PropertyState;
|
||||
import io.requery.util.function.Function;
|
||||
import io.requery.util.function.Supplier;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Object;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.time.Instant;
|
||||
import javax.annotation.Generated;
|
||||
import net.corda.core.node.services.Vault;
|
||||
|
||||
@Generated("io.requery.processor.EntityProcessor")
|
||||
public class VaultStatesEntity implements VaultSchema.VaultStates, Persistable {
|
||||
public static final AttributeDelegate<VaultStatesEntity, String> NOTARY_NAME = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, String>("notary_name", String.class)
|
||||
.setProperty(new Property<VaultStatesEntity, String>() {
|
||||
@Override
|
||||
public String get(VaultStatesEntity entity) {
|
||||
return entity.notaryName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, String value) {
|
||||
entity.notaryName = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getNotaryName")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$notaryName_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$notaryName_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, String> NOTARY_KEY = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, String>("notary_key", String.class)
|
||||
.setProperty(new Property<VaultStatesEntity, String>() {
|
||||
@Override
|
||||
public String get(VaultStatesEntity entity) {
|
||||
return entity.notaryKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, String value) {
|
||||
entity.notaryKey = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getNotaryKey")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$notaryKey_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$notaryKey_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.setLength(65535)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, String> CONTRACT_STATE_CLASS_NAME = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, String>("contract_state_class_name", String.class)
|
||||
.setProperty(new Property<VaultStatesEntity, String>() {
|
||||
@Override
|
||||
public String get(VaultStatesEntity entity) {
|
||||
return entity.contractStateClassName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, String value) {
|
||||
entity.contractStateClassName = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getContractStateClassName")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$contractStateClassName_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$contractStateClassName_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, byte[]> CONTRACT_STATE = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, byte[]>("contract_state", byte[].class)
|
||||
.setProperty(new Property<VaultStatesEntity, byte[]>() {
|
||||
@Override
|
||||
public byte[] get(VaultStatesEntity entity) {
|
||||
return entity.contractState;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, byte[] value) {
|
||||
entity.contractState = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getContractState")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$contractState_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$contractState_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.setLength(100000)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, Vault.StateStatus> STATE_STATUS = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, Vault.StateStatus>("state_status", Vault.StateStatus.class)
|
||||
.setProperty(new Property<VaultStatesEntity, Vault.StateStatus>() {
|
||||
@Override
|
||||
public Vault.StateStatus get(VaultStatesEntity entity) {
|
||||
return entity.stateStatus;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, Vault.StateStatus value) {
|
||||
entity.stateStatus = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getStateStatus")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$stateStatus_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$stateStatus_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, Instant> RECORDED_TIME = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, Instant>("recorded_timestamp", Instant.class)
|
||||
.setProperty(new Property<VaultStatesEntity, Instant>() {
|
||||
@Override
|
||||
public Instant get(VaultStatesEntity entity) {
|
||||
return entity.recordedTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, Instant value) {
|
||||
entity.recordedTime = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getRecordedTime")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$recordedTime_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$recordedTime_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, Instant> CONSUMED_TIME = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, Instant>("consumed_timestamp", Instant.class)
|
||||
.setProperty(new Property<VaultStatesEntity, Instant>() {
|
||||
@Override
|
||||
public Instant get(VaultStatesEntity entity) {
|
||||
return entity.consumedTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, Instant value) {
|
||||
entity.consumedTime = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getConsumedTime")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$consumedTime_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$consumedTime_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, String> LOCK_ID = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, String>("lock_id", String.class)
|
||||
.setProperty(new Property<VaultStatesEntity, String>() {
|
||||
@Override
|
||||
public String get(VaultStatesEntity entity) {
|
||||
return entity.lockId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, String value) {
|
||||
entity.lockId = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getLockId")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$lockId_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$lockId_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, Instant> LOCK_UPDATE_TIME = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, Instant>("lock_timestamp", Instant.class)
|
||||
.setProperty(new Property<VaultStatesEntity, Instant>() {
|
||||
@Override
|
||||
public Instant get(VaultStatesEntity entity) {
|
||||
return entity.lockUpdateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, Instant value) {
|
||||
entity.lockUpdateTime = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getLockUpdateTime")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$lockUpdateTime_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$lockUpdateTime_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, String> TX_ID = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, String>("transaction_id", String.class)
|
||||
.setProperty(new Property<VaultStatesEntity, String>() {
|
||||
@Override
|
||||
public String get(VaultStatesEntity entity) {
|
||||
return entity.txId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, String value) {
|
||||
entity.txId = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getTxId")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$txId_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$txId_state = value;
|
||||
}
|
||||
})
|
||||
.setKey(true)
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.setLength(64)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultStatesEntity, Integer> INDEX = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultStatesEntity, Integer>("output_index", int.class)
|
||||
.setProperty(new IntProperty<VaultStatesEntity>() {
|
||||
@Override
|
||||
public Integer get(VaultStatesEntity entity) {
|
||||
return entity.index;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, Integer value) {
|
||||
if(value != null) {
|
||||
entity.index = value;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInt(VaultStatesEntity entity) {
|
||||
return entity.index;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInt(VaultStatesEntity entity, int value) {
|
||||
entity.index = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getIndex")
|
||||
.setPropertyState(new Property<VaultStatesEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultStatesEntity entity) {
|
||||
return entity.$index_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultStatesEntity entity, PropertyState value) {
|
||||
entity.$index_state = value;
|
||||
}
|
||||
})
|
||||
.setKey(true)
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.setLength(255)
|
||||
.build());
|
||||
|
||||
public static final Type<VaultStatesEntity> $TYPE = new TypeBuilder<VaultStatesEntity>(VaultStatesEntity.class, "vault_states")
|
||||
.setBaseType(VaultSchema.VaultStates.class)
|
||||
.setCacheable(true)
|
||||
.setImmutable(false)
|
||||
.setReadOnly(false)
|
||||
.setStateless(false)
|
||||
.setView(false)
|
||||
.setFactory(new Supplier<VaultStatesEntity>() {
|
||||
@Override
|
||||
public VaultStatesEntity get() {
|
||||
return new VaultStatesEntity();
|
||||
}
|
||||
})
|
||||
.setProxyProvider(new Function<VaultStatesEntity, EntityProxy<VaultStatesEntity>>() {
|
||||
@Override
|
||||
public EntityProxy<VaultStatesEntity> apply(VaultStatesEntity entity) {
|
||||
return entity.$proxy;
|
||||
}
|
||||
})
|
||||
.addAttribute(NOTARY_NAME)
|
||||
.addAttribute(NOTARY_KEY)
|
||||
.addAttribute(CONSUMED_TIME)
|
||||
.addAttribute(LOCK_ID)
|
||||
.addAttribute(LOCK_UPDATE_TIME)
|
||||
.addAttribute(CONTRACT_STATE_CLASS_NAME)
|
||||
.addAttribute(INDEX)
|
||||
.addAttribute(CONTRACT_STATE)
|
||||
.addAttribute(STATE_STATUS)
|
||||
.addAttribute(RECORDED_TIME)
|
||||
.addAttribute(TX_ID)
|
||||
.build();
|
||||
|
||||
private PropertyState $notaryName_state;
|
||||
|
||||
private PropertyState $notaryKey_state;
|
||||
|
||||
private PropertyState $contractStateClassName_state;
|
||||
|
||||
private PropertyState $contractState_state;
|
||||
|
||||
private PropertyState $stateStatus_state;
|
||||
|
||||
private PropertyState $recordedTime_state;
|
||||
|
||||
private PropertyState $consumedTime_state;
|
||||
|
||||
private PropertyState $lockId_state;
|
||||
|
||||
private PropertyState $lockUpdateTime_state;
|
||||
|
||||
private PropertyState $txId_state;
|
||||
|
||||
private PropertyState $index_state;
|
||||
|
||||
private String notaryName;
|
||||
|
||||
private String notaryKey;
|
||||
|
||||
private String contractStateClassName;
|
||||
|
||||
private byte[] contractState;
|
||||
|
||||
private Vault.StateStatus stateStatus;
|
||||
|
||||
private Instant recordedTime;
|
||||
|
||||
private Instant consumedTime;
|
||||
|
||||
private String lockId;
|
||||
|
||||
private Instant lockUpdateTime;
|
||||
|
||||
private String txId;
|
||||
|
||||
private int index;
|
||||
|
||||
private final transient EntityProxy<VaultStatesEntity> $proxy = new EntityProxy<VaultStatesEntity>(this, $TYPE);
|
||||
|
||||
public VaultStatesEntity() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getNotaryName() {
|
||||
return $proxy.get(NOTARY_NAME);
|
||||
}
|
||||
|
||||
public void setNotaryName(String notaryName) {
|
||||
$proxy.set(NOTARY_NAME, notaryName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getNotaryKey() {
|
||||
return $proxy.get(NOTARY_KEY);
|
||||
}
|
||||
|
||||
public void setNotaryKey(String notaryKey) {
|
||||
$proxy.set(NOTARY_KEY, notaryKey);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getContractStateClassName() {
|
||||
return $proxy.get(CONTRACT_STATE_CLASS_NAME);
|
||||
}
|
||||
|
||||
public void setContractStateClassName(String contractStateClassName) {
|
||||
$proxy.set(CONTRACT_STATE_CLASS_NAME, contractStateClassName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] getContractState() {
|
||||
return $proxy.get(CONTRACT_STATE);
|
||||
}
|
||||
|
||||
public void setContractState(byte[] contractState) {
|
||||
$proxy.set(CONTRACT_STATE, contractState);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vault.StateStatus getStateStatus() {
|
||||
return $proxy.get(STATE_STATUS);
|
||||
}
|
||||
|
||||
public void setStateStatus(Vault.StateStatus stateStatus) {
|
||||
$proxy.set(STATE_STATUS, stateStatus);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instant getRecordedTime() {
|
||||
return $proxy.get(RECORDED_TIME);
|
||||
}
|
||||
|
||||
public void setRecordedTime(Instant recordedTime) {
|
||||
$proxy.set(RECORDED_TIME, recordedTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instant getConsumedTime() {
|
||||
return $proxy.get(CONSUMED_TIME);
|
||||
}
|
||||
|
||||
public void setConsumedTime(Instant consumedTime) {
|
||||
$proxy.set(CONSUMED_TIME, consumedTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLockId() {
|
||||
return $proxy.get(LOCK_ID);
|
||||
}
|
||||
|
||||
public void setLockId(String lockId) {
|
||||
$proxy.set(LOCK_ID, lockId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instant getLockUpdateTime() {
|
||||
return $proxy.get(LOCK_UPDATE_TIME);
|
||||
}
|
||||
|
||||
public void setLockUpdateTime(Instant lockUpdateTime) {
|
||||
$proxy.set(LOCK_UPDATE_TIME, lockUpdateTime);
|
||||
}
|
||||
|
||||
public String getTxId() {
|
||||
return $proxy.get(TX_ID);
|
||||
}
|
||||
|
||||
public void setTxId(String txId) {
|
||||
$proxy.set(TX_ID, txId);
|
||||
}
|
||||
|
||||
public int getIndex() {
|
||||
return $proxy.get(INDEX);
|
||||
}
|
||||
|
||||
public void setIndex(int index) {
|
||||
$proxy.set(INDEX, index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof VaultStatesEntity && ((VaultStatesEntity)obj).$proxy.equals(this.$proxy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return $proxy.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return $proxy.toString();
|
||||
}
|
||||
}
|
@ -1,212 +0,0 @@
|
||||
// Generated file do not edit, generated by io.requery.processor.EntityProcessor
|
||||
package net.corda.node.services.vault.schemas;
|
||||
|
||||
import io.requery.Persistable;
|
||||
import io.requery.meta.AttributeBuilder;
|
||||
import io.requery.meta.AttributeDelegate;
|
||||
import io.requery.meta.Type;
|
||||
import io.requery.meta.TypeBuilder;
|
||||
import io.requery.proxy.EntityProxy;
|
||||
import io.requery.proxy.IntProperty;
|
||||
import io.requery.proxy.Property;
|
||||
import io.requery.proxy.PropertyState;
|
||||
import io.requery.util.function.Function;
|
||||
import io.requery.util.function.Supplier;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Object;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated("io.requery.processor.EntityProcessor")
|
||||
public class VaultTxnNoteEntity implements VaultSchema.VaultTxnNote, Persistable {
|
||||
public static final AttributeDelegate<VaultTxnNoteEntity, Integer> SEQ_NO = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultTxnNoteEntity, Integer>("seq_no", int.class)
|
||||
.setProperty(new IntProperty<VaultTxnNoteEntity>() {
|
||||
@Override
|
||||
public Integer get(VaultTxnNoteEntity entity) {
|
||||
return entity.seqNo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultTxnNoteEntity entity, Integer value) {
|
||||
if(value != null) {
|
||||
entity.seqNo = value;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInt(VaultTxnNoteEntity entity) {
|
||||
return entity.seqNo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInt(VaultTxnNoteEntity entity, int value) {
|
||||
entity.seqNo = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getSeqNo")
|
||||
.setPropertyState(new Property<VaultTxnNoteEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultTxnNoteEntity entity) {
|
||||
return entity.$seqNo_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultTxnNoteEntity entity, PropertyState value) {
|
||||
entity.$seqNo_state = value;
|
||||
}
|
||||
})
|
||||
.setKey(true)
|
||||
.setGenerated(true)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultTxnNoteEntity, String> TX_ID = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultTxnNoteEntity, String>("transaction_id", String.class)
|
||||
.setProperty(new Property<VaultTxnNoteEntity, String>() {
|
||||
@Override
|
||||
public String get(VaultTxnNoteEntity entity) {
|
||||
return entity.txId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultTxnNoteEntity entity, String value) {
|
||||
entity.txId = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getTxId")
|
||||
.setPropertyState(new Property<VaultTxnNoteEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultTxnNoteEntity entity) {
|
||||
return entity.$txId_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultTxnNoteEntity entity, PropertyState value) {
|
||||
entity.$txId_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.setLength(64)
|
||||
.build());
|
||||
|
||||
public static final AttributeDelegate<VaultTxnNoteEntity, String> NOTE = new AttributeDelegate(
|
||||
new AttributeBuilder<VaultTxnNoteEntity, String>("note", String.class)
|
||||
.setProperty(new Property<VaultTxnNoteEntity, String>() {
|
||||
@Override
|
||||
public String get(VaultTxnNoteEntity entity) {
|
||||
return entity.note;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultTxnNoteEntity entity, String value) {
|
||||
entity.note = value;
|
||||
}
|
||||
})
|
||||
.setPropertyName("getNote")
|
||||
.setPropertyState(new Property<VaultTxnNoteEntity, PropertyState>() {
|
||||
@Override
|
||||
public PropertyState get(VaultTxnNoteEntity entity) {
|
||||
return entity.$note_state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(VaultTxnNoteEntity entity, PropertyState value) {
|
||||
entity.$note_state = value;
|
||||
}
|
||||
})
|
||||
.setGenerated(false)
|
||||
.setLazy(false)
|
||||
.setNullable(true)
|
||||
.setUnique(false)
|
||||
.build());
|
||||
|
||||
public static final Type<VaultTxnNoteEntity> $TYPE = new TypeBuilder<VaultTxnNoteEntity>(VaultTxnNoteEntity.class, "vault_transaction_notes")
|
||||
.setBaseType(VaultSchema.VaultTxnNote.class)
|
||||
.setCacheable(true)
|
||||
.setImmutable(false)
|
||||
.setReadOnly(false)
|
||||
.setStateless(false)
|
||||
.setView(false)
|
||||
.setFactory(new Supplier<VaultTxnNoteEntity>() {
|
||||
@Override
|
||||
public VaultTxnNoteEntity get() {
|
||||
return new VaultTxnNoteEntity();
|
||||
}
|
||||
})
|
||||
.setProxyProvider(new Function<VaultTxnNoteEntity, EntityProxy<VaultTxnNoteEntity>>() {
|
||||
@Override
|
||||
public EntityProxy<VaultTxnNoteEntity> apply(VaultTxnNoteEntity entity) {
|
||||
return entity.$proxy;
|
||||
}
|
||||
})
|
||||
.addAttribute(SEQ_NO)
|
||||
.addAttribute(NOTE)
|
||||
.addAttribute(TX_ID)
|
||||
.build();
|
||||
|
||||
private PropertyState $seqNo_state;
|
||||
|
||||
private PropertyState $txId_state;
|
||||
|
||||
private PropertyState $note_state;
|
||||
|
||||
private int seqNo;
|
||||
|
||||
private String txId;
|
||||
|
||||
private String note;
|
||||
|
||||
private final transient EntityProxy<VaultTxnNoteEntity> $proxy = new EntityProxy<VaultTxnNoteEntity>(this, $TYPE);
|
||||
|
||||
public VaultTxnNoteEntity() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSeqNo() {
|
||||
return $proxy.get(SEQ_NO);
|
||||
}
|
||||
|
||||
public void setSeqNo(int seqNo) {
|
||||
$proxy.set(SEQ_NO, seqNo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTxId() {
|
||||
return $proxy.get(TX_ID);
|
||||
}
|
||||
|
||||
public void setTxId(String txId) {
|
||||
$proxy.set(TX_ID, txId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getNote() {
|
||||
return $proxy.get(NOTE);
|
||||
}
|
||||
|
||||
public void setNote(String note) {
|
||||
$proxy.set(NOTE, note);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof VaultTxnNoteEntity && ((VaultTxnNoteEntity)obj).$proxy.equals(this.$proxy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return $proxy.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return $proxy.toString();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user