generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 1435 different parent tree gw values and date update (#1491)
- Loading branch information
Showing
80 changed files
with
1,836 additions
and
1,285 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
backend/src/main/java/ca/bc/gov/backendstartapi/dto/GeneticWorthDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package ca.bc.gov.backendstartapi.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.math.BigDecimal; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
/** This class represents a response body when a genetic worth entity is requested. */ | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class GeneticWorthDto extends CodeDescriptionDto { | ||
@Schema(description = "The default breeding value", example = "0.0") | ||
private BigDecimal defaultBv; | ||
|
||
public GeneticWorthDto(String code, String description, BigDecimal defaultBv) { | ||
super(code, description); | ||
this.defaultBv = defaultBv; | ||
} | ||
} |
88 changes: 55 additions & 33 deletions
88
backend/src/main/java/ca/bc/gov/backendstartapi/dto/OrchardDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,71 @@ | ||
package ca.bc.gov.backendstartapi.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* This record represents the OrchardLotTypeDescriptionDto object found in the oracle-api service. | ||
*/ | ||
@Schema(description = "Represents an Orchard object received from oracle-api.") | ||
public record OrchardDto( | ||
@Schema( | ||
description = | ||
""" | ||
@Schema(description = "Represents an Orchard object received from oracle-api except spuId.") | ||
@Getter | ||
@Setter | ||
public class OrchardDto { | ||
@Schema( | ||
description = | ||
""" | ||
A unique identifier which is assigned to a location where cuttings or | ||
A class seed is produced. | ||
""", | ||
example = "339") | ||
String id, | ||
@Schema( | ||
description = "The name of a location where cuttings or A class seed is produced.", | ||
example = "EAGLEROCK") | ||
String name, | ||
@Schema(description = "A code which represents a species of tree or brush.", example = "PLI") | ||
String vegetationCode, | ||
@Schema( | ||
description = | ||
""" | ||
example = "339") | ||
private String id; | ||
|
||
@Schema( | ||
description = "The name of a location where cuttings or A class seed is produced.", | ||
example = "EAGLEROCK") | ||
private String name; | ||
|
||
@Schema(description = "A code which represents a species of tree or brush.", example = "PLI") | ||
private String vegetationCode; | ||
|
||
@Schema( | ||
description = | ||
""" | ||
A code representing a type of orchard. The two values will be 'S' (Seed Lot) or | ||
'C' (Cutting Lot). | ||
""", | ||
example = "S") | ||
Character lotTypeCode, | ||
@Schema( | ||
description = | ||
""" | ||
example = "S") | ||
private Character lotTypeCode; | ||
|
||
@Schema( | ||
description = | ||
""" | ||
A description of the Orchard Lot Type code. The two values will be 'Seed Lot' | ||
or 'Cutting Lot'. | ||
""", | ||
example = "Seed Lot") | ||
String lotTypeDescription, | ||
@Schema( | ||
description = "A code which represents the current stage or status of an orchard.", | ||
example = "PRD") | ||
String stageCode, | ||
@Schema(description = "The bgc zone code", example = "SBS") String becZoneCode, | ||
@Schema(description = "The description of a bgc zone code", example = "Sub-Boreal Spruce") | ||
String becZoneDescription, | ||
@Schema(description = "The bgc sub-zone code", example = "wk") String becSubzoneCode, | ||
@Schema(description = "The variant.", example = "1") Character variant, | ||
@Schema(description = "The bec version id.", example = "5") Integer becVersionId) {} | ||
example = "Seed Lot") | ||
private String lotTypeDescription; | ||
|
||
@Schema( | ||
description = "A code which represents the current stage or status of an orchard.", | ||
example = "PRD") | ||
private String stageCode; | ||
|
||
@Schema(description = "The bgc zone code", example = "SBS") | ||
private String becZoneCode; | ||
|
||
@Schema(description = "The description of a bgc zone code", example = "Sub-Boreal Spruce") | ||
private String becZoneDescription; | ||
|
||
@Schema(description = "The bgc sub-zone code", example = "wk") | ||
private String becSubzoneCode; | ||
|
||
@Schema(description = "The variant.", example = "1") | ||
private Character variant; | ||
|
||
@Schema(description = "The bec version id.", example = "5") | ||
private Integer becVersionId; | ||
|
||
@Schema(description = "Seed Plan Unit id", example = "7") | ||
private Integer spuId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.