start adding hibernate entities

This commit is contained in:
stefano 2020-01-28 16:55:14 +00:00
parent 32bdd9728c
commit 78d83e9583
4 changed files with 37 additions and 7 deletions

View File

@ -25,6 +25,36 @@ import java.sql.SQLException
class DBCheckpointStorage : CheckpointStorage {
val log: Logger = LoggerFactory.getLogger(this::class.java)
@Entity
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}checkpoints")
class DBFlowCheckpoint(
)
@Entity
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}checkpoints_blobs")
class DBFlowCheckpointBlob(
)
@Entity
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}flow_results")
class DBFlowResult(
)
@Entity
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}flow_exceptions")
class DBFlowException(
)
@Entity
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}flow_metadata")
class DBFlowMetadata(
)
@Entity
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}checkpoints")
class DBCheckpoint(

View File

@ -31,8 +31,8 @@
<include file="migration/node-core.changelog-v14-data.xml"/>
<include file="migration/node-core.changelog-v17.xml"/>
<include file="migration/node-core.changelog-v17-postgres.xml"/>
<include file="migration/node-core.changelog-v17-keys.xml"/>
<!-- <include file="migration/node-core.changelog-v17.xml"/>-->
<!-- <include file="migration/node-core.changelog-v17-postgres.xml"/>-->
<!-- <include file="migration/node-core.changelog-v17-keys.xml"/>-->
</databaseChangeLog>

View File

@ -100,13 +100,13 @@
<column name="invocation_id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="flow_id" type="BIGINT">
<column name="flow_id" type="NVARCHAR(64)">
<constraints nullable="true"/>
</column>
<column name="flow_name" type="NVARCHAR(128)">
<constraints nullable="false"/>
</column>
<column name="flow_identifier" type="NVARCHAR(128)">
<column name="flow_identifier" type="NVARCHAR(512)">
<constraints nullable="true"/>
</column>
<column name="started_type" type="NVARCHAR(32)">

View File

@ -100,13 +100,13 @@
<column name="invocation_id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="flow_id" type="BIGINT">
<column name="flow_id" type="NVARCHAR(64)">
<constraints nullable="true"/>
</column>
<column name="flow_name" type="NVARCHAR(128)">
<constraints nullable="false"/>
</column>
<column name="flow_identifier" type="NVARCHAR(128)">
<column name="flow_identifier" type="NVARCHAR(512)">
<constraints nullable="true"/>
</column>
<column name="started_type" type="NVARCHAR(32)">