DAR-148 — Add JPA associations to KycRequest and KycReview
Summary
-
KycRequest: added@OneToManyassociation toKycDocument(viakyc_id),@OneToOnetoKycReview(mapped bykycRequest), and@OneToOnetoInvestorProfile(viauser_id) -
KycReview: added@OneToOneback-reference toKycRequest(viakyc_id) - All associations use
FetchType.LAZYand are read-only (insertable = false, updatable = false)
Motivation
Consuming services need to navigate the KYC object graph (request → documents, review, investor profile) without issuing separate queries per entity. These associations enable that without changing the underlying schema.
Notes
- No schema changes — join columns already exist in the DB
- No Spring context introduced — JAR remains context-free