Why does @ResultMap not support directly configuring XML

14 views
Skip to first unread message

王心昊

unread,
Jun 27, 2024, 8:50:15 PM (7 days ago) Jun 27
to mybatis-user

I don’t think this is a difficult task
e.g.

@ResultMap(""" <resultMap id="userMap" type="com.example.model.User"> <id property="id" column="id" /> <result property="name" column="name" /> <association property="email" select="selectUserEmailById" column="id" fetchType="lazy" /> </resultMap> """)

Reply all
Reply to author
Forward
0 new messages