Commit f2361a9
feat: ESPI 4.0 Schema Compliance - Phase 12: ElectricPowerQualitySummary (#79)
Aligned ElectricPowerQualitySummaryEntity field order with ESPI 4.0 XSD schema
specification (espi.xsd). Moved summaryInterval field to correct position
between shortInterruptions and supplyVoltageDips to match schema sequence.
Changes:
- ElectricPowerQualitySummaryEntity: Reordered summaryInterval field to match
XSD element sequence (lines 121-139)
- V3__Create_additiional_Base_Tables.sql: Updated table column order to match
XSD schema (summary_interval columns now between short_interruptions and
supply_voltage_dips)
Validation:
- ElectricPowerQualitySummaryDto already compliant with XSD propOrder
- ElectricPowerQualitySummaryMapper uses default MapStruct field mapping
- All repository queries preserved for test usage
- All 533 tests passing (unit + integration with H2, MySQL, PostgreSQL)
Schema Element Order (ESPI 4.0 espi.xsd):
1. flickerPlt
2. flickerPst
3. harmonicVoltage
4. longInterruptions
5. mainsVoltage
6. measurementProtocol
7. powerFrequency
8. rapidVoltageChanges
9. shortInterruptions
10. summaryInterval (DateTimeInterval - REQUIRED)
11. supplyVoltageDips
12. supplyVoltageImbalance
13. supplyVoltageVariations
14. tempOvervoltage
References:
- ESPI 4.0 XSD: espi.xsd ElectricPowerQualitySummary complexType
- Phase plan: Issue #28 Phase 12
- Related: Phase 11 (UsageSummary)
Co-authored-by: Claude Sonnet 4.5 <[email protected]>1 parent 1a4b309 commit f2361a9
File tree
2 files changed
+16
-15
lines changed- openespi-common/src/main
- java/org/greenbuttonalliance/espi/common/domain/usage
- resources/db/migration
2 files changed
+16
-15
lines changedLines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
116 | 127 | | |
117 | 128 | | |
118 | 129 | | |
| |||
142 | 153 | | |
143 | 154 | | |
144 | 155 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | 343 | | |
348 | 344 | | |
349 | 345 | | |
350 | 346 | | |
351 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| |||
0 commit comments