Skip to content

Commit

Permalink
adds version to insert in batch
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadileepkolli committed Apr 30, 2023
1 parent 506fd6c commit 1040a81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class MFSchemeEntity extends AuditableEntity<String> implements Serializa
@Column(name = "scheme_name_alias")
private String schemeNameAlias;

@Version
private Long version;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "mf_scheme_type_id")
private MFSchemeTypeEntity mfSchemeTypeEntity = null;
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/db/changelog/scripts/initilize_db.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<column name="pay_out" type="text"/>
<column name="scheme_name_alias" type="text"/>
<column name="mf_scheme_type_id" type="INT"/>
<column name="version" type="BIGINT"/>
<column name="created_by" type="text"/>
<column name="created_date" type="DATETIME"/>
<column name="last_modified_by" type="text"/>
Expand Down Expand Up @@ -60,7 +61,7 @@
</createTable>

<createTable tableName="error_message">
<column name="error_id" type="BIGINT" defaultValueSequenceNext="error_id_seq">
<column name="error_id" type="BIGINT" defaultValueSequenceNext="error_message_seq">
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_errormessage"/>
</column>
<column name="message" type="text"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>("postgres:15.2-alpine");
}

static final GenericContainer lokiContainer = new GenericContainer(DockerImageName.parse("grafana/loki"));
static final GenericContainer lokiContainer =
new GenericContainer(DockerImageName.parse("grafana/loki")).withExposedPorts(3100);

static {
lokiContainer.start();
Expand Down

0 comments on commit 1040a81

Please sign in to comment.