When resolving the reference of the top element of the for directive, if it is a field access, only the type of the Dao parameter can be obtained.
If it is a field access, the type of the last called property is obtained and the reference is resolved to the element defined in the for directive.
public class Principal {
private List<Permission> permissions;
public static class Permission {
public String name;
public String description;
}
}
@Select
int selectByPrincipal(Principal principal);
/*%for item : principal.permissions */ -- The type is not displayed when I hover the cursor over an item
/* item.name */
/*%end */
Expectation: item is resolved as a Permission type