#314 - Added MyBatis example.

MyBatisTests demonstrates how some queries executed by Spring Data JDBC can be replaced with MyBatis mappings.
The domain model is based on the basic JDBC.

The map of models is maintained by two statements configured in MyBatis mappings.

example.springdata.jdbc.mybatis.LegoSetMapper.findAllByProperty-models showcases how a map can be loaded by configuring the select to return instances of Map.Entry

example.springdata.jdbc.mybatis.Model.insert showcases how one can access the MyBatixContext and thereby the instance to save and the key of the parent entity.

Original pull request: #345.
This commit is contained in:
Jens Schauder
2017-12-01 10:56:40 +01:00
committed by Oliver Gierke
parent 8884d98971
commit 047610df5f
17 changed files with 535 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
<modules>
<module>basics</module>
<module>mybatis</module>
</modules>
<properties>