Skip to content

Commit 66a33e3

Browse files
author
Dennis Labordus
committed
Refactoring setup project to build two docker images (basex and postgresql). Flyway is now configured using Quarkus.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent da934e5 commit 66a33e3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

repository-postgresql/src/main/java/org/lfenergy/compas/scl/data/repository/postgresql/CompasSclDataPostgreSQLRepository.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import static org.lfenergy.compas.scl.data.exception.CompasSclDataServiceErrorCode.*;
2626

2727
public class CompasSclDataPostgreSQLRepository implements CompasSclDataRepository {
28-
private static final String SElECT_METADATA_CLAUSE = "select id, name, major_version, minor_version, patch_version ";
28+
private static final String SELECT_METADATA_CLAUSE = "select id, name, major_version, minor_version, patch_version ";
2929
private static final String FROM_CLAUSE = " from scl_file ";
3030
private static final String DELETE_FROM_CLAUSE = "delete " + FROM_CLAUSE;
3131
private static final String WHERE_CLAUSE = " where ";
@@ -52,7 +52,7 @@ public CompasSclDataPostgreSQLRepository(DataSource dataSource) {
5252
@Override
5353
@Transactional(SUPPORTS)
5454
public List<Item> list(SclType type) {
55-
var sql = SElECT_METADATA_CLAUSE
55+
var sql = SELECT_METADATA_CLAUSE
5656
+ FROM_CLAUSE
5757
+ WHERE_CLAUSE + FILTER_ON_TYPE
5858
+ " and (id, major_version, minor_version, patch_version) in ("
@@ -99,7 +99,7 @@ public List<Item> list(SclType type) {
9999
@Override
100100
@Transactional(SUPPORTS)
101101
public List<Item> listVersionsByUUID(SclType type, UUID id) {
102-
var sql = SElECT_METADATA_CLAUSE
102+
var sql = SELECT_METADATA_CLAUSE
103103
+ FROM_CLAUSE
104104
+ WHERE_CLAUSE + FILTER_ON_ID
105105
+ AND_CLAUSE + FILTER_ON_TYPE
@@ -165,7 +165,7 @@ public String findByUUID(SclType type, UUID id, Version version) {
165165
@Override
166166
@Transactional(SUPPORTS)
167167
public SclMetaInfo findMetaInfoByUUID(SclType type, UUID id) {
168-
var sql = SElECT_METADATA_CLAUSE
168+
var sql = SELECT_METADATA_CLAUSE
169169
+ FROM_CLAUSE
170170
+ WHERE_CLAUSE + FILTER_ON_ID
171171
+ AND_CLAUSE + FILTER_ON_TYPE
@@ -237,7 +237,7 @@ public void delete(SclType type, UUID id, Version version) {
237237
+ WHERE_CLAUSE + FILTER_ON_ID
238238
+ AND_CLAUSE + FILTER_ON_TYPE
239239
+ AND_CLAUSE + FILTER_ON_VERSION;
240-
240+
241241
try (var connection = dataSource.getConnection();
242242
var stmt = connection.prepareStatement(sql)) {
243243
stmt.setObject(1, id);

repository-postgresql/src/test/java/org/lfenergy/compas/scl/data/repository/postgresql/CompasSclDataPostgreSQLRepositoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected CompasSclDataRepository getRepository() {
1919
}
2020

2121
@BeforeEach
22-
void beforeEach() throws Exception {
22+
void beforeEach() {
2323
repository = new CompasSclDataPostgreSQLRepository(PostgreSQLServerJUnitExtension.getDataSource());
2424
}
2525
}

0 commit comments

Comments
 (0)