[ext-fintraffic] Persist and expose parking infoLinks - #424
Open
teppope wants to merge 11 commits into
Open
Conversation
Implements the extension hook infrastructure from feat/parking-extension-hooks to persist and expose paymentMethods on the Fintraffic Parking entity: - FintrafficParking: @entity subclass with @ElementCollection paymentMethods - FintrafficParkingEntityFactory: produces FintrafficParking instances - FintrafficMergingParkingImporter: copies paymentMethods into the persisted entity - FintrafficParkingGraphQLTypeContributor: adds paymentMethods to the GraphQL schema - FintrafficParkingUpdater: populates and preserves paymentMethods on GraphQL mutations - FintrafficParkingMapperContributor: bridges paymentMethods between NeTEx and Tiamat enums - V3__FintrafficParkingExtensions: Flyway migration adding dtype column and payment methods table - Full test coverage: unit + integration tests for all components Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…Factory Orika cannot auto-map paymentMethods because the NeTEx and Tiamat enum types differ. The FintrafficParkingMapperContributor already handles the conversion explicitly, so including paymentMethods in the Orika classmap was redundant and confusing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…xtProvider static field Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 task
…cognized JPA entity Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…xt-fintraffic-info-links
1 task
teppope
marked this pull request as ready for review
July 30, 2026 06:10
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds persistence for
infoLinkson the FintrafficFintrafficParkingextension entity as a@ElementCollection, stored in theparking_info_linkscollection table. This is part of the Liipi P&R migration project (DPO-4810).Changes:
FintrafficInfoLink@Embeddablewithuri(String) andtypeOfInfoLink(String, first NeTEx type value)FintrafficParkinggains an@ElementCollection(EAGER) List<FintrafficInfoLink> infoLinksV4__FintrafficParkingInfoLinkscreatesparking_info_linkswith CHECK constraint ontype_of_info_linkFintrafficFlywayConfigregisters V4FintrafficParkingEntityFactoryadds"infoLinks"to Orika exclusion listFintrafficParkingMapperContributormaps NeTExInfoLink↔FintrafficInfoLinkin both directions; takes firsttypeOfInfoLinkvalue from the NeTEx listFintrafficMergingParkingImporter.mergeExtendedFieldscompares and copiesinfoLinksalongsidepaymentMethods; unchanged links do not trigger a new versionFintrafficParkingGraphQLTypeContributorregistersTypeOfInfoLinkEnum,FintrafficInfoLinkoutput/input types, and contributesinfoLinksfield; uses a customDataFetcherto read fromFintrafficParkingdirectlyFintrafficParkingUpdaterpopulates and preservesinfoLinksinpopulateExtendedFields/preserveExtendedFieldsType of change
Issue
Part of the Liipi P&R migration to Tiamat.
infoLinksonParkingis currently@Transientin core; this change persists it in the Fintraffic extension layer without modifying upstream core code.