You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gap (found by the #119 atom:link-vs-entity/DDL audit)
The Flyway DDL already has the foreign keys for the Customer/PII resource tree, but the JPA entity classes do not map them — so the PII XPath chain can't be navigated and the atom:link rel="related" links can't be emitted by the #119 resource surface.
Missing entity relationships (DDL FK present, JPA mapping absent)
CustomerAgreementEntity, CustomerAccountEntity, ServiceLocationEntity, EndDeviceEntity, MeterEntity carry no @OneToMany/@ManyToOne/@OneToOne for these FK-linked siblings. (Already mapped/OK: Customer↔CustomerAccount, Customer↔Statement, Customer↔TimeConfiguration, *↔Statement, UsageSummary↔Statement.)
Why it matters
Prerequisite for the P-phase of the #119 resource surface: the entry assembler resolves related-resource ids via entity navigation, and the XPath endpoints (CustomerAgreement/{id}/ServiceLocation/{id}/EndDevice …) require the chain to be navigable. The DDL does not change — this is pure JPA relationship mapping of existing FKs (low risk).
Work
Add the missing @ManyToOne/@OneToMany (and @OneToOne for ServiceLocation↔LocalTimeParameters) mappings matching the existing FK columns + UML multiplicities.
Gap (found by the #119 atom:link-vs-entity/DDL audit)
The Flyway DDL already has the foreign keys for the Customer/PII resource tree, but the JPA entity classes do not map them — so the PII XPath chain can't be navigated and the
atom:link rel="related"links can't be emitted by the #119 resource surface.Missing entity relationships (DDL FK present, JPA mapping absent)
<<link>>)CustomerAgreementEntity,CustomerAccountEntity,ServiceLocationEntity,EndDeviceEntity,MeterEntitycarry no@OneToMany/@ManyToOne/@OneToOnefor these FK-linked siblings. (Already mapped/OK: Customer↔CustomerAccount, Customer↔Statement, Customer↔TimeConfiguration, *↔Statement, UsageSummary↔Statement.)Why it matters
Prerequisite for the P-phase of the #119 resource surface: the entry assembler resolves related-resource ids via entity navigation, and the XPath endpoints (
CustomerAgreement/{id}/ServiceLocation/{id}/EndDevice…) require the chain to be navigable. The DDL does not change — this is pure JPA relationship mapping of existing FKs (low risk).Work
@ManyToOne/@OneToMany(and@OneToOnefor ServiceLocation↔LocalTimeParameters) mappings matching the existing FK columns + UML multiplicities.customer.xsd(Verify Entity Field Types and Lengths Match ESPI 4.0 XSD Schemas #101) and the bidirectional<<link>>graph (NAESB 4.0 EA model).Related: #119 (resource surface, P-phase), #101/#123 (entity/DDL↔XSD), #168 (the analogous ProgramIdMappings energy gap).