Javamybatis mapping attribute, detailed explanation of advanced mapping

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
分享
二维码
< <上一篇
下一篇>>