Skip to content

Commit

Permalink
Renamed BayTypicalResponse.BayTypical to BayTypicalResponse.BayTypica…
Browse files Browse the repository at this point in the history
…lItem

Signed-off-by: Pascal Wilbrink <[email protected]>
  • Loading branch information
pascalwilbrink committed Mar 24, 2023
1 parent a37baf3 commit e76f624
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Uni<BayTypicalResponse> getAssignedBayTypicals() {
response.setBayTypicals(
this.bayTypicalService.getAssignedBayTypicals()
.stream()
.map(BayTypicalResponse.BayTypical::new)
.map(BayTypicalResponse.BayTypicalItem::new)
.collect(Collectors.toList())
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import org.eclipse.microprofile.openapi.annotations.media.Schema;
import org.lfenergy.compas.sitipe.data.entity.BayTypical;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
Expand All @@ -24,19 +22,19 @@ public class BayTypicalResponse {

@Schema(description = "List of found BayTypicals in the database.")
@XmlElement(name = "BayTypical", namespace = SITIPE_SERVICE_V1_NS_URI)
private List<BayTypical> bayTypicals;
private List<BayTypicalItem> bayTypicals;

public void setBayTypicals(final List<BayTypical> bayTypicals) {
public void setBayTypicals(final List<BayTypicalItem> bayTypicals) {
this.bayTypicals = bayTypicals;
}

public List<BayTypical> getBayTypicals() {
public List<BayTypicalItem> getBayTypicals() {
return bayTypicals;
}

@Schema(description = "BayTypical found in the database.")
@XmlAccessorType(XmlAccessType.FIELD)
public static class BayTypical {
public static class BayTypicalItem {

@Schema(description = "Id of the BayTypical.", example = "1")
@XmlElement(name = "Id", namespace = SITIPE_SERVICE_V1_NS_URI)
Expand All @@ -54,7 +52,7 @@ public static class BayTypical {
@XmlElement(name = "Version", namespace = SITIPE_SERVICE_V1_NS_URI)
private String version;

@Schema(description = "Description of the BayTypical.", example = "")
@Schema(description = "Description of the BayTypical.")
@XmlElement(name = "Description", namespace = SITIPE_SERVICE_V1_NS_URI)
private String description;

Expand Down Expand Up @@ -86,8 +84,8 @@ public static class BayTypical {
@XmlElement(name = "ReferenceAccessId", namespace = SITIPE_SERVICE_V1_NS_URI)
private String referenceAccessId;

public BayTypical(
final org.lfenergy.compas.sitipe.data.entity.BayTypical bt
public BayTypicalItem(
final BayTypical bt
) {
this.id = bt.getId();
this.accessId = bt.getAccessId();
Expand Down

0 comments on commit e76f624

Please sign in to comment.