22 Commits

Author SHA1 Message Date
Michal Fotyga
353aae564e DATAJDBC-509 - Fix findByFirstnameLike @Query example in README.
Original pull request: #198.
2020-03-20 08:36:47 +01:00
Mark Paluch
b01dcb04f3 DATAJDBC-391 - Fix typo. 2019-07-10 09:48:41 +02:00
Mark Paluch
82cb0bc057 DATAJDBC-391 - Revise readme for a consistent structure. 2019-07-09 11:18:00 +02:00
Mark Paluch
71c9fe53e3 DATAJDBC-336 - URL Cleanup. 2019-06-18 10:19:53 +02:00
Greg Turnquist
b93c4c818c DATAJDBC-376 - Introduce Jenkins. 2019-06-11 19:53:20 -05:00
Michael Simons
b93e8b52ff DATAJDBC-365 - Fix typos in readme.
Original pull request: #149.
2019-04-23 09:20:17 +02:00
Jens Schauder
863bf225f6 DATAJDBC-261 - Added link to license.txt in README. 2018-09-12 08:11:44 +02:00
Jens Schauder
1a32e22017 DATAJDBC-206 - Polishing.
Removed single lined table.

Original pull request: #61.
2018-04-17 15:04:57 +02:00
Jens Schauder
0b6354eb47 DATAJDBC-206 - Reflected DATAJDBC-130 in the README.
Original pull request: #61.
2018-04-17 15:04:51 +02:00
Kazuki Shimizu
2089ad7f0d DATAJDBC-206 - Polishing.
Formatting.

Original pull request: #61.
2018-04-17 15:04:42 +02:00
Kazuki Shimizu
01a4bbd745 DATAJDBC-206 - Update README with changes from recent issues.
Covers changes from DATAJDBC-182, DATAJDBC-184, DATAJDBC-178.

Original pull request: #61.
2018-04-17 15:04:00 +02:00
Jens Schauder
cc477f8c89 DATAJDBC-200 - Renamed Events to have an 'Event' suffix.
Original pull request: #60.
2018-04-13 12:06:56 +02:00
Chr1st0ph
5382d3b94e DATAJDBC-198 - Prevent HSQL specific tests to run when a different database profile is selected.
Set active profile on HSQL specific tests to HSQL.

Fixed Readme to properly reflect the need to have a Docker installation.

Original pull request: #59.
2018-04-12 15:30:10 +02:00
Chr1st0ph
d4b2eca43a DATAJDBC-196 - Integration-test-support for MariaDB.
Original pull request: #57.
2018-04-11 09:34:12 +02:00
Chr1st0ph
2898e21f8c DATAJDBC-194 - Polish README.adoc.
Typos, links, grammar and similar fixed.

Original pull request: #56.
2018-04-10 10:11:56 +02:00
Jens Schauder
a2b7699256 DATAJDBC-166 - Allow registration of RowMappers based on result type.
RowMapper can be configured either via the @Query(rowMapperClass = …​.) or by registerign a RowMapperMap bean and register RowMapper per method return type.

                @Bean
                RowMapperMap rowMappers() {
                        return new ConfigurableRowMapperMap() //
                                        .register(Person.class, new PersonRowMapper()) //
                                        .register(Address.class, new AddressRowMapper());
                }

When determining the RowMapper to use for a method the following steps are followed based on the return type of the method:

1. If the type is a simple type no RowMapper is used. Instead the query is expected to return a single row with a single column and a conversion to the return type is applied to that value.

2. The entity classes in the RowMapperMap are iterated until one is found that is a superclass or interface of the return type in question. The RowMapper registered for that class is used. Iterating happens in the order of registration, so make sure to register more general types after specific ones.

If applicable wrapper type like collections or Optional are unwrapped. So a return type of Optional<Person> will use the type Person in the steps above.
2018-03-21 11:37:05 -05:00
Jens Schauder
bc209b1114 DATAJDBC-164 - Add support for basic @Query annotation. 2018-01-26 09:48:43 -06:00
Jens Schauder
ab6da6edff DATAJDBC-156 - Describe available mappings in README.
Includes the major limitations and their rational.
2018-01-26 09:26:20 -06:00
Greg Turnquist
0ef1a63bda DATAJDBC-154 - Polishing. 2017-11-27 11:43:13 -06:00
Jens Schauder
d5193e4418 DATAJDBC-154 - Include some basic getting started documentation in the readme. 2017-11-27 11:27:52 -06:00
Jens Schauder
806bb24ff5 DATAJDBC-123 - MyBatis integration on DbAction level.
If MyBatis-spring is available and a SqlSessionFactory in the Application Context we look for matching mapped sql statements instead of using the default generated SQL.

Introduced DataAccessStrategy as a new abstraction level, operating on a single entity. JdbcEntityOperations only contain operations related to complete Aggregates. Thereby also solving DATAJDBC-132.

Integration tests ending in HsqlIntegrationTest will only get executed using HsqlDb.

Related issue: DATAJDBC-132.
2017-09-19 11:13:42 -05:00
Greg Turnquist
b8fe3c67c0 DATAJDBC-122 - Introduce code of conduct 2017-08-08 08:48:09 +02:00