Skip to content

Comments

Transform Configurations to Spring Repository #226

Open
louis878 wants to merge 19 commits intodevelopfrom
feature/b05e527/transform-configurations-to-spring-repository
Open

Transform Configurations to Spring Repository #226
louis878 wants to merge 19 commits intodevelopfrom
feature/b05e527/transform-configurations-to-spring-repository

Conversation

@louis878
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Transform the existing metadata configurations to repositories.

Id
b05e527

@BerrevoetsRobbe BerrevoetsRobbe added the enhancement New feature or request label Sep 13, 2020
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove

Comment on lines +145 to +149
Optional<Component> components = Optional.ofNullable(
DataAccessUtils.singleResult(namedParameterJdbcTemplate.query(
getByNameAndVersion,
sqlParameterSource,
new ComponentExtractor())));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not return this? instead of line 150-157

SqlParameterSource sqlParameterSource = new MapSqlParameterSource()
.addValue("id", componentKey.getId())
.addValue("versionNumber", componentKey.getVersionNumber());
Optional<Component> components = Optional.ofNullable(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not return this

@@ -0,0 +1,44 @@
package io.metadew.iesi.metadata.configuration.script;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed? ScriptParameters should be extracted at ScriptExrtractor


import io.metadew.iesi.metadata.definition.Metadata;
import io.metadew.iesi.metadata.definition.action.key.ActionKey;
import io.metadew.iesi.metadata.definition.component.ComponentParameter;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Comment on lines 33 to 38
public String ErrorExpectedGet() {
return errorExpected;
}
public String ErrorStopGet() {
return errorStop;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getter should already exist through Lombok Data

Comment on lines 17 to 16
@Data
@Getter
@Setter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove data and add getter/setter?

Comment on lines 45 to 47
public String getName() {
return getMetadataKey().getName();
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getter should exist

louis 878 added 2 commits November 5, 2020 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants