Javamybatis mapping attribute, detailed explanation of advanced mapping
•
Java
SQL attribute of mapping file:
ID: identifier (usually Dao layer method name)
Resulttype: SQL return type
Resultmap: map type put back
Parametertype: parameter type
Usegeneratedkeys = "true" keyproperty = "Id": put back the last self increasing ID after adding the object (Note: after adding the object, the ID property of the object will have a value automatically)
Resultmap advanced mapping:
Super class (class in class) Association:
One to many: Collection
The above detailed explanation of javamybatis mapping attributes and advanced mapping is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码