- Enhancements
-
-
Remove requirement for entities to implement
Persistable
interface. Entities may implementPersistable
, or use annotation@Id
from Spring Data Commons. -
Add
SqlGeneratorFactory
that automatically selects compatibleSqlGenerator
according to used database. -
Add protected getter for
jdbcOperations
(#2). -
Optimize
delete(Iterable)
– delete entities in a single query. -
Make
update(S)
more robust – throw exception when ID is not null or wrong number of rows is (not) updated.
-
- Bug fixes
-
-
Fix duplication in test dependencies – exclude
groovy-all
fromspock-spring
.
-
- Changes
-
-
Rename base package from
com.nurkiewicz.jdbcrepository
tocz.jirutka.spring.data.jdbc
. -
JdbcRepository
:-
remove method
pk(Object…)
, -
rename
JdbcRepository
toBaseJdbcRepository
and create interfaceJdbcRepository
, -
remove argument
sqlGenerator
from constructors and remove constructors withoutrowUnmapper
, -
rename
getTable()
togetTableDesc()
, -
rename
create(..)
toinsert(..)
,preCreate(..)
topreInsert(..)
andpostCreate
topostInsert(..)
, -
remove overloaded method
postUpdate(S, int)
(it’s not needed anymore, see above), -
inject dependencies using
@Autowired
instead of manual lookup inBeanFactory
, -
add required dependency on
DataSource
and make dependency onJdbcOperations
optional, -
disallow properties change after initialization (invoking
afterPropertiesSet()
).
-
-
TableDescription
:-
rename
getName()
togetTableName()
andgetIdColumns()
togetPkColumns()
, -
add property
selectClause
, -
add setters for all properties.
-
-
SqlGenerator
and subclasses:-
remove field
allColumnsClause
and one-argument constructor (this is replaced by propertyselectClause
inTableDescription
), -
rename
SqlGenerator
toDefaultSqlGenerator
, create interfaceSqlGenerator
and reorganize subclasses.
-
-
Rename
MissingRowUnmapper
toUnsupportedRowUnmapper
.
-
- Infrastructure
-
-
Update dependencies.
-
Refactor and extend tests for
SqlGenerator
. -
Add tests for methods
insert(..)
andupdate(..)
.
-
⭐️ Project forked and published under new coordinates: cz.jirutka.spring:spring-data-jdbc-repository.
- Enhancements
-
-
Rewrite all tests to Spock/Groovy.
-
Add overloaded hook method
JdbcRepository#postUpdate(Persistable, int)
with number of affected rows. -
Improve
exists(ID)
performance; useselect 1
instead ofselect count(*)
. -
Change visibility of methods
JdbcRepository#update(Persistable)
andJdbcRepository#create(Persistable)
to public.
-
- Bug fixes
-
-
Treat column names as case-insensitive (nurkiewicz#16).
-
Fix autowiring of SqlGenerator bean (nurkiewicz#25).
-
- Deprecations/changes
-
-
Drop support for Java 6, minimal required version is now 7.
-
Deprecate method
JdbcRepository.pk(Object…)
-
- Infrastructure
-
-
Reformat and slightly refactor sources.
-
Test on CI with both OpenJDK 7 and OracleJDK 8.
-
Run integration tests for Oracle on Travis using Oracle XE installed with cbandy/travis-oracle.
-
Run integration tests for MS SQL on AppVeyor using SQL Server 2012SP1 and 2014.
-
Add integration tests for MariaDB and run them on Travis.
-
Separate CI build jobs for embedded databases, PostgreSQL, MariaDB, MySQL, Oracle, and MSSQL.
-
Replace BoneCP with HikariCP in tests.
-
Inherit versions from Spring’s platform-bom.
-
-
Fixed standalone configuration and CDI Implementation (nurkiewicz#10)
-
First version available in Maven central repository
-
Upgraded Spring Data Commons 1.6.1 → 1.8.0
-
Upgraded Spring dependencies: 3.2.1 → 3.2.4 and 1.5.0 → 1.6.1
-
Allow manually injecting JdbcOperations, SqlGenerator and DataSource (nurkiewicz#5)
-
Oracle 10g / 11g support (nurkiewicz#3)
-
Upgrading Spring dependency to 3.2.1.RELEASE and Spring Data Commons to 1.5.0.RELEASE (nurkiewicz#4).
-
MS SQL Server 2008/2012 support (nurkiewicz#2)
-
Initial revision (announcement)