3 tables A,B and a reference table status having column status_code which fetches details like description and type. Using Springboot 3.2.5 and JPA and
<mapstruct.version>1.5.5.Final</mapstruct.version><lombok-mapstruct-binding>0.2.0</lombok-mapstruct-binding>
Defined mapper for A and B using AEntity and BEntity with their respective DTO's. Each of these classes contain status field which is a FK from status table. How to define the status mapper such that the mapper returns the Entity which is present in the repository for the given status code in the DTO for status object?