With JDK 11 ApplicationListeners implemented as lambdas don't get correctly handled at the moment.
This is fixed for Spring Framework 5.0.9, which isn't released yet.
Therefore we depend for the JDBC examples on the snapshot.
An alternative would be to use proper classes instead of lambdas.
See also: SPR-17093.
If properties are final they need to have a matching argument in the persistence constructor or a matching "Wither".
Otherwise trying to set them results in an exception.
Id Properties additionally need a Wither if a generated Id from the database is supposed to get set.
If properties are final they need to have a matching argument in the persistence constructor or a matching "Wither".
Otherwise trying to set them results in an exception.
Removed explicit generation of DefaultDataAccessStrategy since that is now done by default.
Using MyBatisDataAccessStrategy factory for creating an appropriate DataAccessStrategy in the presence of MyBatis.
Removed references to DefaultNamingStrategy since that is now merged into NamingStrategy.
Extracted MyBatis Boot Starter version int property in pom.xml. Removed unused code, more use of Lombok, formatting. Added new lines at end of files where missing.
Original pull request: #345.
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.
Tweaking indentation in pom.xml to use tabs. Switch to upgrade to Spring Data release train Lovelace to simplify dependency declarations.
Import order. Copyright years. Formatting.
Original pull request: #324.