Commit Graph

1594 Commits

Author SHA1 Message Date
Greg L. Turnquist
a4ef56d83c Add support for MySQL and Postgres testing.
* Introduce Testcontainers as the mechanism to test against real data stores.
* Alter CI to handle running Testcontainers in reduced privilege mode.
* Run the data store specific test cases ONLY for the baseline Java 8 test execution.

See #2256.
2021-07-23 11:27:55 -05:00
Jens Schauder
183e3e5b62 After release cleanups.
See #2201
2021-07-16 14:19:57 +02:00
Jens Schauder
003d78b0e9 Prepare next development iteration.
See #2201
2021-07-16 14:19:55 +02:00
Jens Schauder
bfdc68d1f8 Release version 2.6 M1 (2021.1.0).
See #2201
2021-07-16 14:09:25 +02:00
Jens Schauder
9f210e0ee1 Prepare 2.6 M1 (2021.1.0).
See #2201
2021-07-16 14:08:58 +02:00
Jens Schauder
2e1f1a45f4 Updated changelog.
See #2201
2021-07-16 14:08:34 +02:00
Jens Schauder
0215782490 Updated changelog.
See #2246
2021-07-16 10:48:16 +02:00
Jens Schauder
59bf6783ab Upgrade Hibernate to 5.5.3.Final
Closes #2257
2021-07-12 15:14:46 +02:00
Oliver Drotbohm
400aa0e042 Adapt to API consolidation in Spring Data Commons' PersistentProperty.
Closes: #2254
Original Pull Request: #2255
Related to: spring-projects/spring-data-commons#2408
2021-07-12 09:10:15 +02:00
Greg L. Turnquist
8d6634430f Polishing.
See: #1959, #409.
2021-07-09 11:32:21 -05:00
Greg L. Turnquist
0a81bc6a5d Polishing.
See: #1959, #409.
2021-07-09 11:31:58 -05:00
Gabriel Basilio Brito
554bd3d6ed Add REF_CURSOR support for stored procedures.
When registered procedure output parameters, if the method annotated with @Procedure has a collection return type or an entity return type, then use ResultSet. Otherwise, handle either the array (Object[]) or the primitive types.

* Throw a proper exception when using an @Procedure-annotated method and no transaction is active.
* Introduce refCursor as a boolean flag to @Procedure denoting when to use REF_CURSORs for OUT parameters..
* Extract a ProcedureParameter command object to ease usage of a parameter's name, type and mode. (NOTE: javax.persistence already has "StoredProcedureParameter".)

NOTE: Integration testing of stored procedures is very limited by lack of HSQL's support for REF CURSORS. See ##2256 to track future work for potential testing against MySQL, Oracle, Postgres, or SQL Server.

See: #1959, #409.
Related: #2014.
2021-07-09 11:28:24 -05:00
Greg L. Turnquist
2e30a353c9 Drop serialVersionUID from AbstractPersistable.
Considering it's not serializable, there is no need to maintain serialVersionUID.

See #2245.
2021-07-02 14:36:54 -05:00
DaniBa1
05cce6d135 Fixing small mistake in documentation
Changed a wrong description.

Closes #2251
2021-07-01 16:59:09 +02:00
Jens Schauder
5754fa5d23 Remove explicit version for Mockito, so we use the one of Spring Data Build.
Closes #2247
See https://github.com/spring-projects/spring-data-build/issues/1469
2021-06-22 16:33:58 +02:00
Mark Paluch
cde430e9fb Updated changelog.
See #2215
2021-06-22 16:07:24 +02:00
Mark Paluch
e2e50ac63a Updated changelog.
See #2214
2021-06-22 15:29:50 +02:00
Jens Schauder
26146eeede Upgrade Hibernate to 5.5.2.Final 2021-06-21 18:17:16 +02:00
Jens Schauder
92bbf1ac6f Upgrade Mockito to 3.11.1 2021-06-21 18:16:09 +02:00
Jens Schauder
1c79f5f0d9 Upgrade EclipseLink to 2.7.9 2021-06-21 17:52:03 +02:00
Mark Paluch
bf8e8a1eac Polishing.
Update placeholder name to reflect its position instead of the content that is being added by using modules.

Original pull request: #2237.
See #2009
2021-06-17 12:05:45 +02:00
Jens Schauder
fcc1d8b317 Add a note that DTO projections are not supported with native queries.
Closes #2009
Related ticket: spring-projects/spring-data-commons#2382
Original pull request: #2237
2021-06-17 12:04:24 +02:00
Mark Paluch
dfdb528458 Use Spring nullability annotations instead of JSR305.
Closes #2239.
2021-06-17 09:01:51 +02:00
Manuel Doninger
316d0ce7e4 Remove superfluous @Repository annotation from examples.
Remove the @Repository annotation from interfaces in the examples, since it is not necessary on Spring Data interfaces (and creates a warning log anyway).

Closes #2234
Original pull request #2235
2021-06-15 11:58:44 +02:00
Michael Simons
dec2a43736 Polishing.
Original pull request #2229
See #2228
2021-06-09 14:56:42 +02:00
Michael Simons
5a00192ecd Escape JDBC styled parameters.
Closes #2228
Original pull request #2229
2021-06-09 14:56:06 +02:00
Jens Schauder
39e72af2d5 Fix build failures with Java 16.
A few test that used reflection to access the actual SQL executed by a Query object failed with `java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module @1b9e1916`.
This change replaces the reflection used by a proper call to `unwrap`.

Original pull request #2231
2021-06-09 12:10:22 +02:00
Jens Schauder
aa10c46c7b Fix documenation of entity state-detection strategies.
Closes #2230
2021-06-09 10:59:05 +02:00
Jens Schauder
087b61024b Remove AspectJ dependency.
The dependency was seemingly introduced as a workaround to a Maven problem before this project even had the name Spring Data JPA.

No problems are noticeable when building without the dependency or when using it in a simple Spring Boot app without it.

Closes #2218
2021-06-08 14:33:05 +02:00
Mark Paluch
da9eddd83f Updated changelog.
See #2199
2021-05-14 12:36:34 +02:00
Mark Paluch
8a0f0c27ab Updated changelog.
See #2197
2021-05-14 12:06:37 +02:00
Greg L. Turnquist
44239c30c9 Update CI to JDK 16.
See #2184.
2021-05-13 15:47:14 -05:00
Jens Schauder
1948f1a5e2 Adjust leveloffset for the JPA specific part.
This moves the complete "JPA Repositories" section und "Reference Documentation".
2021-05-07 16:00:54 +02:00
Mark Paluch
ad161f87c5 Improve wording on transactional methods inherited from SimpleJpaRepository and repository fragments.
Closes #2207
2021-05-03 09:11:08 +02:00
Mark Paluch
e7cac87c2e Provide anchors for fourth level sections.
See #2129
2021-04-29 14:25:33 +02:00
Greg L. Turnquist
68034e75bc Authenticate with artifactory.
See #2192.
2021-04-22 12:19:28 -05:00
Mark Paluch
ea20270f24 Polishing.
Fix Javadoc references.

See #2202.
2021-04-22 11:04:15 +02:00
Mark Paluch
9468e890de Introduce template method for easier customization of fragments.
We introduced getRepositoryFragments(RepositoryMetadata,EntityManager,EntityPathResolver,CrudMethodMetadata) to easier get hold of typical arguments required for customization of repository base fragments that aren't bound to a specific entity type such as QuerydslJpaPredicateExecutor.

Closes #2202.
2021-04-22 11:02:45 +02:00
Greg L. Turnquist
2ccd7c8280 Migrate to main branch.
See #2192.
2021-04-15 13:46:39 -05:00
Mark Paluch
acf01b6c71 After release cleanups.
See #2192
2021-04-14 14:30:14 +02:00
Mark Paluch
624d4074ec Prepare next development iteration.
See #2192
2021-04-14 14:30:11 +02:00
Mark Paluch
9c9e6ef52a Release version 2.5 GA (2021.0.0).
See #2192
2021-04-14 14:18:47 +02:00
Mark Paluch
21d5f193d2 Prepare 2.5 GA (2021.0.0).
See #2192
2021-04-14 14:18:21 +02:00
Mark Paluch
6fe6b5e914 Updated changelog.
See #2192
2021-04-14 14:18:13 +02:00
Mark Paluch
c1d55f84f7 Updated changelog.
See #2193
2021-04-14 11:43:30 +02:00
Mark Paluch
a17ef4d75d Updated changelog.
See #2180
2021-04-14 11:17:38 +02:00
Jens Schauder
f5cb86c34c Upgrade dependencies.
Closes #2195
2021-04-09 11:06:17 +02:00
Oliver Drotbohm
e6c370be2d JpaPersistentPropertyImpl.getAssociationTargetType() falls back to actual type for associations
In case a property is an association we now fall back to the property's actual type if there's no explicit association target type.
2021-04-07 16:23:05 +02:00
Mark Paluch
582fa61449 Updated changelog.
See #2181
2021-03-31 18:30:43 +02:00
Mark Paluch
0257f99c41 After release cleanups.
See #2178
2021-03-31 17:24:05 +02:00