Policy has many Vehicles, many Drivers. Naturally, the policy foreign key is in Driver and Vehicle. When I generate the models and Mappers through mybatis generators, the policy model does not have a collection of Drivers or Vehicles and there is no query in Mapper that performs the inner joins and returns the result in Policy.
Sure I can write this by hand. Does mybatis generator generate selects for relationships like one to many, one to one?