Skip to content

Commit e67be81

Browse files
committed
Fixing code tables to work in Graalvm. Also Added code tables to POSTMAN collection.
1 parent b0e4657 commit e67be81

File tree

6 files changed

+297
-14
lines changed

6 files changed

+297
-14
lines changed

postman/Prevention.postman_collection.json

Lines changed: 224 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"_postman_id": "e461f033-920d-44ed-b5e4-6fdc5ed82b82",
44
"name": "Prevention",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6-
"_exporter_id": "2065617"
6+
"_exporter_id": "2065617",
7+
"_collection_link": "https://wf-prevention.postman.co/workspace/WF-Prevention-Workspace~28fb468d-4c8b-4713-8fa7-21d4ad9f4bd4/collection/2065617-e461f033-920d-44ed-b5e4-6fdc5ed82b82?action=share&source=collection_link&creator=2065617"
78
},
89
"item": [
910
{
@@ -272,7 +273,7 @@
272273
"response": []
273274
},
274275
{
275-
"name": "GET Parks Section Code",
276+
"name": "GET program Area Codes",
276277
"request": {
277278
"auth": {
278279
"type": "bearer",
@@ -287,21 +288,238 @@
287288
"method": "GET",
288289
"header": [],
289290
"url": {
290-
"raw": "{{LOCAL_API_URL}}/codes/bcParksSectionCodes/10",
291+
"raw": "{{LOCAL_API_URL}}/codes/bcParksSectionCodes",
292+
"host": [
293+
"{{LOCAL_API_URL}}"
294+
],
295+
"path": [
296+
"codes",
297+
"bcParksSectionCodes"
298+
]
299+
}
300+
},
301+
"response": []
302+
},
303+
{
304+
"name": "GET Forest District Codes",
305+
"request": {
306+
"auth": {
307+
"type": "bearer",
308+
"bearer": [
309+
{
310+
"key": "token",
311+
"value": "{{accessToken}}",
312+
"type": "string"
313+
}
314+
]
315+
},
316+
"method": "GET",
317+
"header": [
318+
{
319+
"key": "Content-Type",
320+
"value": "application/json",
321+
"type": "text"
322+
}
323+
],
324+
"url": {
325+
"raw": "{{LOCAL_API_URL}}/codes/forestDistrictCodes",
326+
"host": [
327+
"{{LOCAL_API_URL}}"
328+
],
329+
"path": [
330+
"codes",
331+
"forestDistrictCodes"
332+
]
333+
}
334+
},
335+
"response": []
336+
},
337+
{
338+
"name": "GET General Scope Codes",
339+
"protocolProfileBehavior": {
340+
"disableBodyPruning": true
341+
},
342+
"request": {
343+
"auth": {
344+
"type": "bearer",
345+
"bearer": [
346+
{
347+
"key": "token",
348+
"value": "{{accessToken}}",
349+
"type": "string"
350+
}
351+
]
352+
},
353+
"method": "GET",
354+
"header": [
355+
{
356+
"key": "Content-Type",
357+
"value": "application/json",
358+
"type": "text"
359+
}
360+
],
361+
"body": {
362+
"mode": "raw",
363+
"raw": "{\n \"projectPlanFiscalGuid\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"projectGuid\": \"123e4567-e89b-12d3-a456-426614174001\",\n \"activityCategoryCode\": \"Tactical Planning\",\n \"fiscalYear\": 2024,\n \"projectPlanStatusCode\": \"ACTIVE\",\n \"planFiscalStatusCode\": \"APPROVED\",\n \"projectFiscalName\": \"Forest Restoration\",\n \"projectFiscalDescription\": \"Restoration project for forest lands\",\n \"estimatedClwrrAllocAmount\": 50000.00,\n \"totalCostEstimateAmount\": 120000.00,\n \"fiscalFundingRequestAmount\": 70000.00,\n \"fiscalAllocatedAmount\": 65000.00,\n \"firstNationsDelivPartInd\": true,\n \"firstNationsEngagementInd\": false,\n \"isApprovedInd\": true,\n \"isDelayedInd\": false,\n \"submissionTimestamp\": \"2025-01-01T00:00:00Z\",\n \"approverName\": \"John Doe\",\n \"approverUserGuid\": \"abcd1234-5678-9101-1121-314151617181\",\n \"approverUserUserid\": \"jdoe\",\n \"approvedTimestamp\": \"2025-01-01T10:00:00Z\"\n}",
364+
"options": {
365+
"raw": {
366+
"language": "json"
367+
}
368+
}
369+
},
370+
"url": {
371+
"raw": "{{LOCAL_API_URL}}/codes/forestDistrictCodes",
372+
"host": [
373+
"{{LOCAL_API_URL}}"
374+
],
375+
"path": [
376+
"codes",
377+
"forestDistrictCodes"
378+
]
379+
}
380+
},
381+
"response": []
382+
},
383+
{
384+
"name": "GETProject Type Codes",
385+
"protocolProfileBehavior": {
386+
"disableBodyPruning": true
387+
},
388+
"request": {
389+
"auth": {
390+
"type": "bearer",
391+
"bearer": [
392+
{
393+
"key": "token",
394+
"value": "{{accessToken}}",
395+
"type": "string"
396+
}
397+
]
398+
},
399+
"method": "GET",
400+
"header": [
401+
{
402+
"key": "Content-Type",
403+
"value": "application/json",
404+
"type": "text"
405+
}
406+
],
407+
"body": {
408+
"mode": "raw",
409+
"raw": "{\n \"projectPlanFiscalGuid\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"projectGuid\": \"123e4567-e89b-12d3-a456-426614174001\",\n \"activityCategoryCode\": \"Tactical Planning\",\n \"fiscalYear\": 2024,\n \"projectPlanStatusCode\": \"ACTIVE\",\n \"planFiscalStatusCode\": \"APPROVED\",\n \"projectFiscalName\": \"Forest Restoration\",\n \"projectFiscalDescription\": \"Restoration project for forest lands\",\n \"estimatedClwrrAllocAmount\": 50000.00,\n \"totalCostEstimateAmount\": 120000.00,\n \"fiscalFundingRequestAmount\": 70000.00,\n \"fiscalAllocatedAmount\": 65000.00,\n \"firstNationsDelivPartInd\": true,\n \"firstNationsEngagementInd\": false,\n \"isApprovedInd\": true,\n \"isDelayedInd\": false,\n \"submissionTimestamp\": \"2025-01-01T00:00:00Z\",\n \"approverName\": \"John Doe\",\n \"approverUserGuid\": \"abcd1234-5678-9101-1121-314151617181\",\n \"approverUserUserid\": \"jdoe\",\n \"approvedTimestamp\": \"2025-01-01T10:00:00Z\"\n}",
410+
"options": {
411+
"raw": {
412+
"language": "json"
413+
}
414+
}
415+
},
416+
"url": {
417+
"raw": "{{LOCAL_API_URL}}/codes/projectTypeCodes",
418+
"host": [
419+
"{{LOCAL_API_URL}}"
420+
],
421+
"path": [
422+
"codes",
423+
"projectTypeCodes"
424+
]
425+
}
426+
},
427+
"response": []
428+
},
429+
{
430+
"name": "GET Forest Region Codes",
431+
"protocolProfileBehavior": {
432+
"disableBodyPruning": true
433+
},
434+
"request": {
435+
"auth": {
436+
"type": "bearer",
437+
"bearer": [
438+
{
439+
"key": "token",
440+
"value": "{{accessToken}}",
441+
"type": "string"
442+
}
443+
]
444+
},
445+
"method": "GET",
446+
"header": [
447+
{
448+
"key": "Content-Type",
449+
"value": "application/json",
450+
"type": "text"
451+
}
452+
],
453+
"body": {
454+
"mode": "raw",
455+
"raw": "{\n \"projectPlanFiscalGuid\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"projectGuid\": \"123e4567-e89b-12d3-a456-426614174001\",\n \"activityCategoryCode\": \"Tactical Planning\",\n \"fiscalYear\": 2024,\n \"projectPlanStatusCode\": \"ACTIVE\",\n \"planFiscalStatusCode\": \"APPROVED\",\n \"projectFiscalName\": \"Forest Restoration\",\n \"projectFiscalDescription\": \"Restoration project for forest lands\",\n \"estimatedClwrrAllocAmount\": 50000.00,\n \"totalCostEstimateAmount\": 120000.00,\n \"fiscalFundingRequestAmount\": 70000.00,\n \"fiscalAllocatedAmount\": 65000.00,\n \"firstNationsDelivPartInd\": true,\n \"firstNationsEngagementInd\": false,\n \"isApprovedInd\": true,\n \"isDelayedInd\": false,\n \"submissionTimestamp\": \"2025-01-01T00:00:00Z\",\n \"approverName\": \"John Doe\",\n \"approverUserGuid\": \"abcd1234-5678-9101-1121-314151617181\",\n \"approverUserUserid\": \"jdoe\",\n \"approvedTimestamp\": \"2025-01-01T10:00:00Z\"\n}",
456+
"options": {
457+
"raw": {
458+
"language": "json"
459+
}
460+
}
461+
},
462+
"url": {
463+
"raw": "{{LOCAL_API_URL}}/codes/forestRegionCodes",
464+
"host": [
465+
"{{LOCAL_API_URL}}"
466+
],
467+
"path": [
468+
"codes",
469+
"forestRegionCodes"
470+
]
471+
}
472+
},
473+
"response": []
474+
},
475+
{
476+
"name": "GET BC Parks Region Codes",
477+
"protocolProfileBehavior": {
478+
"disableBodyPruning": true
479+
},
480+
"request": {
481+
"auth": {
482+
"type": "bearer",
483+
"bearer": [
484+
{
485+
"key": "token",
486+
"value": "{{accessToken}}",
487+
"type": "string"
488+
}
489+
]
490+
},
491+
"method": "GET",
492+
"header": [
493+
{
494+
"key": "Content-Type",
495+
"value": "application/json",
496+
"type": "text"
497+
}
498+
],
499+
"body": {
500+
"mode": "raw",
501+
"raw": "{\n \"projectPlanFiscalGuid\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"projectGuid\": \"123e4567-e89b-12d3-a456-426614174001\",\n \"activityCategoryCode\": \"Tactical Planning\",\n \"fiscalYear\": 2024,\n \"projectPlanStatusCode\": \"ACTIVE\",\n \"planFiscalStatusCode\": \"APPROVED\",\n \"projectFiscalName\": \"Forest Restoration\",\n \"projectFiscalDescription\": \"Restoration project for forest lands\",\n \"estimatedClwrrAllocAmount\": 50000.00,\n \"totalCostEstimateAmount\": 120000.00,\n \"fiscalFundingRequestAmount\": 70000.00,\n \"fiscalAllocatedAmount\": 65000.00,\n \"firstNationsDelivPartInd\": true,\n \"firstNationsEngagementInd\": false,\n \"isApprovedInd\": true,\n \"isDelayedInd\": false,\n \"submissionTimestamp\": \"2025-01-01T00:00:00Z\",\n \"approverName\": \"John Doe\",\n \"approverUserGuid\": \"abcd1234-5678-9101-1121-314151617181\",\n \"approverUserUserid\": \"jdoe\",\n \"approvedTimestamp\": \"2025-01-01T10:00:00Z\"\n}",
502+
"options": {
503+
"raw": {
504+
"language": "json"
505+
}
506+
}
507+
},
508+
"url": {
509+
"raw": "{{LOCAL_API_URL}}/codes/bcParksRegionCodes",
291510
"host": [
292511
"{{LOCAL_API_URL}}"
293512
],
294513
"path": [
295514
"codes",
296-
"bcParksSectionCodes",
297-
"10"
515+
"bcParksRegionCodes"
298516
]
299517
}
300518
},
301519
"response": []
302520
},
303521
{
304-
"name": "Get Project Copy",
522+
"name": "Delete Project",
305523
"request": {
306524
"auth": {
307525
"type": "bearer",

server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/data/entities/ForestOrgUnitCodeEntity.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@
2727
@EqualsAndHashCode(callSuper = false)
2828
@Builder
2929
@AllArgsConstructor
30-
@NoArgsConstructor
3130
public class ForestOrgUnitCodeEntity implements Serializable {
3231

32+
public ForestOrgUnitCodeEntity() {
33+
// Default constructor for GraalVM compatibility
34+
}
35+
3336
private static final long serialVersionUID = 1L;
3437

3538
@Id
@@ -66,7 +69,7 @@ public class ForestOrgUnitCodeEntity implements Serializable {
6669
@NotNull
6770
@Version
6871
private Integer revisionCount;
69-
72+
7073
@CreatedBy
7174
@NotNull
7275
@Column(name = "create_user", length = 64)

server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/data/models/BCParksRegionCodeModel.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
@JsonInclude(JsonInclude.Include.NON_NULL)
2020
@Builder
2121
@AllArgsConstructor
22-
@NoArgsConstructor
23-
public class BCParksRegionCodeModel extends CommonModel<BCParksRegionCodeModel> {
22+
public class BCParksRegionCodeModel extends CommonModel<ca.bc.gov.nrs.wfprev.data.models.BCParksRegionCodeModel> {
23+
24+
public BCParksRegionCodeModel() {
25+
// Default constructor for GraalVM compatibility
26+
}
2427
private Integer orgUnitId;
2528
private Date effectiveDate;
2629
private Date expiryDate;

server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/data/models/BCParksSectionCodeModel.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
@JsonInclude(JsonInclude.Include.NON_NULL)
2020
@Builder
2121
@AllArgsConstructor
22-
@NoArgsConstructor
23-
public class BCParksSectionCodeModel extends CommonModel<BCParksSectionCodeModel> {
22+
public class BCParksSectionCodeModel extends CommonModel<ca.bc.gov.nrs.wfprev.data.models.BCParksSectionCodeModel> {
23+
24+
public BCParksSectionCodeModel() {
25+
// Default constructor for GraalVM compatibility
26+
}
2427
private Integer orgUnitId;
2528
private Date effectiveDate;
2629
private Date expiryDate;

server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/data/models/ForestDistrictUnitCodeModel.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@
1919
@JsonInclude(JsonInclude.Include.NON_NULL)
2020
@Builder
2121
@AllArgsConstructor
22-
@NoArgsConstructor
23-
public class ForestDistrictUnitCodeModel extends CommonModel<ForestDistrictUnitCodeModel> {
22+
public class ForestDistrictUnitCodeModel extends CommonModel<ca.bc.gov.nrs.wfprev.data.models.ForestDistrictUnitCodeModel> {
23+
24+
public ForestDistrictUnitCodeModel() {
25+
// Default constructor for GraalVM compatibility
26+
}
27+
2428
private Integer orgUnitId;
2529
private Date effectiveDate;
2630
private Date expiryDate;

server/wfprev-api/src/main/resources/native-image/reflection-config.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,5 +799,57 @@
799799
"allPublicMethods": true,
800800
"allDeclaredFields": true,
801801
"allPublicFields": true
802+
},
803+
{
804+
"name": "org.apache.logging.log4j.util.ProviderUtil",
805+
"allDeclaredMethods": true,
806+
"allDeclaredFields": true
807+
},
808+
{
809+
"name": "java.util.ServiceLoader",
810+
"allDeclaredMethods": true,
811+
"allDeclaredFields": true,
812+
"allPublicMethods": true,
813+
"allPublicFields": true,
814+
"allDeclaredClasses": true,
815+
"allPublicClasses": true,
816+
"allDeclaredConstructors": true,
817+
"allPublicConstructors": true
818+
},
819+
{
820+
"name": "ca.bc.gov.nrs.wfprev.data.entities.ForestOrgUnitCodeEntity",
821+
"allDeclaredConstructors": true,
822+
"allDeclaredMethods": true,
823+
"allDeclaredFields": true
824+
},
825+
{
826+
"name": "ca.bc.gov.nrs.wfprev.data.models.ForestRegionUnitCodeModel",
827+
"allDeclaredConstructors": true,
828+
"allDeclaredMethods": true,
829+
"allDeclaredFields": true
830+
},
831+
{
832+
"name": "ca.bc.gov.nrs.wfprev.data.models.BCParksSectionCodeModel",
833+
"allDeclaredConstructors": true,
834+
"allDeclaredMethods": true,
835+
"allDeclaredFields": true
836+
},
837+
{
838+
"name": "ca.bc.gov.nrs.wfprev.data.models.BCParksRegionCodeModel",
839+
"allDeclaredConstructors": true,
840+
"allDeclaredMethods": true,
841+
"allDeclaredFields": true
842+
},
843+
{
844+
"name": "ca.bc.gov.nrs.wfprev.data.models.ForestDistrictUnitCodeModel",
845+
"allDeclaredConstructors": true,
846+
"allDeclaredMethods": true,
847+
"allDeclaredFields": true
848+
},
849+
{
850+
"name": "ca.bc.gov.nrs.wfprev.data.entities.ForestOrgUnitCodeEntity",
851+
"allDeclaredConstructors": true,
852+
"allDeclaredMethods": true,
853+
"allDeclaredFields": true
802854
}
803855
]

0 commit comments

Comments
 (0)