MyBatis(3.2.3) - One-to-many mapping
Inthesampledomainmodel,atutorcanteachoneormorecourses.Thismeansthat thereisaone-to-manyrelationshipbetweenthetutorandcourse.Wecanmapone-to-manytypesof...
many-to-one和one-to-many的配置比较
many-to-one配置:<many-to-one name="dailyCatalog" column="daily_catalog_id" class="com.tyloo.po.DailyCatalog" fetch="join" lazy="false" />one-to-m...