& lt; ResultMap id="rm" type="* & gt;
The property is to be with bean one-to-one correspondence, but if the column with the database can not one-to-one correspondence, how to design?
CodePudding user response:
To be exact, some of the property is not required, such as user and group ids, group name, group ID and group name is not necessary to join the property, just need a group ID, but if join the group name property inherited MAPPER will need to implement listall all MAPPER interfaces, such as the how to design?CodePudding user response:
Can be specified on the properties of the entity annotation @ entity database field name, one to one correspondence