Commit Graph

895 Commits

Author SHA1 Message Date
Oliver Gierke
f1f5ca98c1 DATAJPA-1143 - Adapt to API changes in mapping subsystem.
Rolled back API usage of Optional in mapping APIs.
2017-07-04 14:42:47 +02:00
Mark Paluch
7cfa1be6fd DATAJPA-1114 - After release cleanups. 2017-06-14 17:14:08 +02:00
Mark Paluch
aa086d0734 DATAJPA-1114 - Prepare next development iteration. 2017-06-14 17:14:06 +02:00
Mark Paluch
6ab12e9d95 DATAJPA-1114 - Release version 2.0 M4 (Kay). 2017-06-14 17:03:48 +02:00
Mark Paluch
2773a234d2 DATAJPA-1114 - Prepare 2.0 M4 (Kay). 2017-06-14 17:03:00 +02:00
Mark Paluch
0da91066f1 DATAJPA-1114 - Updated changelog. 2017-06-14 17:02:57 +02:00
Mark Paluch
43a5779fb0 DATAJPA-1134 - Adopt tests to composable repositories.
Related ticket: DATACMNS-102.
2017-06-14 08:46:15 +02:00
Mark Paluch
9dd670e87a DATAJPA-1097 - Updated changelog. 2017-06-08 11:56:18 +02:00
Mark Paluch
0d3c5af26e DATAJPA-1131 - Adopt to changed AnnotationUtils.getValue(…) behavior.
Related ticket: SPR-15540.
2017-06-07 17:32:47 +02:00
Mark Paluch
d70a804bd2 DATAJPA-1096 - Updated changelog. 2017-06-07 12:23:33 +02:00
Mark Paluch
ec9722b2a5 DATAJPA-1116 - Polishing.
Guard consistently paged/unpaged handling. Fix javadoc.

Original pull request: #203.
2017-05-23 10:16:23 +02:00
Christoph Strobl
34d3f8121a DATAJPA-1116 - Polishing.
Remove whitespaces and update JavaDoc.
Use Pageable.isUnpaged() & Sort.isUnsorted() where possible.

Original pull request: #203.
2017-05-23 10:16:18 +02:00
Christoph Strobl
60c8328001 DATAJPA-1116 - Return Optional for JpaSpecificationExecutor.findOne(Specification).
We now return Optional<T> instead of T for findOne(Specification) to align the return type to the ones used in CrudRepository.

Original pull request: #203.
2017-05-23 10:16:04 +02:00
Christoph Strobl
7813974fdc DATAJPA-1115 - Polishing.
Migrate assertions to AssertJ.

Original pull request: #202.
Related ticket: DATACMNS-1059.
2017-05-19 09:30:37 +02:00
Christoph Strobl
86852846f3 DATAJPA-1115 - Adapt to QuerydslPredicateExecutor API changes.
We now return Optional<T> for findOne(Predicate).

Original pull request: #202.
Related ticket: DATACMNS-1059.
2017-05-19 09:30:17 +02:00
Oliver Gierke
be5946d55a DATAJPA-1086 - Improved exception message in StringQuery in case of undetectable parameter names.
We now explicitly hint at compiling with -parameters on JDK 8 to use named parameters.
2017-05-17 07:14:13 +02:00
Christoph Strobl
c02f444465 DATAJPA-1110 - Polishing.
Migrate assertions to AssertJ. Fix Javadoc.

Original pull request: #201.
2017-05-11 09:48:52 +02:00
Christoph Strobl
efac93c8f3 DATAJPA-1110 - Adapt to QueryByExampleExecutor API changes.
Use Optional as return type for findOne(Example example).

Related ticket: DATACMNS-1058.

Original pull request: #201.
2017-05-11 09:34:03 +02:00
Mark Paluch
eebe9b51cc DATAJPA-1090 - After release cleanups. 2017-05-09 11:34:42 +02:00
Mark Paluch
5265cf0f10 DATAJPA-1090 - Prepare next development iteration. 2017-05-09 11:34:41 +02:00
Mark Paluch
b23194bc77 DATAJPA-1090 - Release version 2.0 M3 (Kay). 2017-05-09 11:23:00 +02:00
Mark Paluch
c747cb42c3 DATAJPA-1090 - Prepare 2.0 M3 (Kay). 2017-05-09 11:22:12 +02:00
Mark Paluch
7600821fb6 DATAJPA-1090 - Updated changelog. 2017-05-09 11:22:02 +02:00
Oliver Gierke
d9a08871db DATAJPA-1104 - Further removals of Serializable requirements for identifiers. 2017-05-03 18:25:30 +02:00
Oliver Gierke
b49d7662d9 DATAJPA-1104 - Adapted to API changes in repository interfaces. 2017-05-03 17:28:00 +02:00
Mark Paluch
75558d6c2c DATAJPA-1099 - Polishing.
Guard removal of settings.xml against absence.

Original pull request: #198.
2017-04-25 10:18:33 +02:00
Jens Schauder
85e7138989 DATAJPA-1099 - Make sure Travis builds resolve dependencies only on repositories defined by our POM.
The settings.xml at travis-ci contains references to codehaus.org which doesn't exist anymore. Therefore we remove it during setup of the build.

Original pull request: #198.
2017-04-25 10:18:33 +02:00
Jens Schauder
59ecf5828c DATAJPA-1102 - Upgrade to Eclipselink 2.6.4.
Upgrade main version to Eclipselink 2.6.4 and eclipselink-next buildprofile to Eclipselink 2.6.5-SNAPSHOT. The snapshot referenced in the profile eclipselink-next isn't available anymore.

Original pull request: #198.
2017-04-25 10:18:33 +02:00
Krzysztof Rzymkowski
6aa1beb061 DATAJPA-300 - Javadoc on Specification.
Javadoc of Specification.toPredicate() now correctly states that it may return null.
2017-04-24 09:33:56 +02:00
Oliver Gierke
2d2fbd7fde DATAJPA-1095 - Updated changelog. 2017-04-19 21:04:06 +02:00
Oliver Gierke
2027fc0e87 DATAJPA-1094 - Updated changelog. 2017-04-19 20:01:38 +02:00
Oliver Gierke
64cc8cd1e3 DATAJPA-1072 - Updated changelog. 2017-04-19 13:03:59 +02:00
Oliver Gierke
ef1e0b33ff DATAJPA-1071 - Updated changelog. 2017-04-19 11:50:39 +02:00
Oliver Gierke
bbaebfca60 DATAJPA-1087 - Polishing.
Extracted QueryHints and DefaultQueryHints into dedicated files (still package scope). Removed handling of optional CrudMethodMetadata in favour of a null object implementation of QueryHints.

Original pull request: #196.
2017-04-18 16:57:07 +02:00
Christoph Strobl
0c174d5dfc DATAJPA-1087 - Apply query hints to count queries for Querydsl but leave out fetch graphs.
We now make sure to apply query hints also to count queries created via Querydsl Predicates but avoid applying potential fetch graphs.

Original pull request: #196.
2017-04-18 16:57:07 +02:00
Oliver Gierke
ceb69b1f63 DATAJPA-1075 - Polishing.
Formatting and generic types over raw types in Jpa21Utils. Removed superfluous EntityManager.flush() and ….clear() from EntityGraphRepositoryMethodsIntegrationTests. Formatting, spelling.

Original pull request: #192.
2017-04-18 10:27:32 +02:00
Christoph Strobl
5fd8578d30 DATAJPA-1075 - Append ad hoc EntityGraph subgraphs properly.
We now make sure to append instead of recreate subgraphs correctly when AttributeNodes already exist for a given property or dot path. This change fixes errors when creating ad hoc fetch graphs like below where multiple properties are loaded via a subgraph on the same type.

@EntityGraph(attributePaths = { "colleagues.roles", "colleagues.colleagues" })

Previously the first path was accidentally dropped. Additionally we fixed issues with the creation of "deep" ad hoc fetch graphs via @EntityGraph so that


@EntityGraph(attributePaths = { "roles", "colleagues.roles", "colleagues.colleagues.roles" })

can be used as a short form of

@NamedEntityGraph(name = "User.deepGraph",
        attributeNodes = {
                @NamedAttributeNode("roles"),
                @NamedAttributeNode(value="colleagues", subgraph = "User.colleagues")
        },
        subgraphs = {
                @NamedSubgraph(name = "User.colleagues", attributeNodes = {
                        @NamedAttributeNode("roles"),
                        @NamedAttributeNode(value = "colleagues", subgraph = "User.colleaguesOfColleagues")
                }),
                @NamedSubgraph(name="User.colleaguesOfColleagues", attributeNodes = {
                        @NamedAttributeNode("roles"),
                })

        })
})

We had to disable EclipseLink tests for this one since there seems to be a glitch when calling EntityManager.clear() prior to applying the fetch-/loadgraph causing the properties not to be in the correct load state. Omitting EntityManager.clear() is not an option since the load state is always LOADED even when leaving out query hints.

Related issue: DATAJPA-1041.
Original pull request: #192.
Related pull request: #188.
2017-04-18 10:26:06 +02:00
Oliver Gierke
7e14da8beb DATAJPA-1050 - Updated changelog. 2017-04-10 13:33:08 +02:00
Oliver Gierke
525c724384 DATAJPA-1009 - After release cleanups. 2017-04-04 22:08:18 +02:00
Oliver Gierke
0d4837e503 DATAJPA-1009 - Prepare next development iteration. 2017-04-04 22:08:12 +02:00
Oliver Gierke
5aaaeee490 DATAJPA-1009 - Release version 2.0 M2 (Kay). 2017-04-04 21:12:35 +02:00
Oliver Gierke
b1a7fbdf4d DATAJPA-1009 - Prepare 2.0 M2 (Kay). 2017-04-04 21:12:01 +02:00
Oliver Gierke
54d6de4ca4 DATAJPA-1009 - Updated changelog. 2017-04-04 21:11:52 +02:00
Oliver Gierke
c9641ffe4f DATAJPA-1085 - Upgraded Hibernate baseline to 5.2.
Removed build profiles for older Hibernate versions, Travis build setup for those. Removed reflection based code paths to support older versions of Hibernate.

Removed build profiles for Spring 5 and 4.3 as well.
2017-04-03 17:50:28 +02:00
Oliver Gierke
a8788be250 DATAJPA-1084 - Documented rationale behind the way that derived deleteBy-query methods are implemented. 2017-04-03 12:44:33 +02:00
Oliver Gierke
85b930dd07 DATAJPA-1079 - Adapt to API changes in RepositoryConfigurationExtensionSupport. 2017-03-24 20:28:48 +01:00
Oliver Gierke
30144795dc DATAJPA-1064 - Adapt to changes in Mockito 2.7. 2017-03-24 08:07:12 +01:00
Oliver Gierke
e1425581ab DATAJPA-1064 - Fixed spelling of Querydsl file names. 2017-03-24 08:07:12 +01:00
Oliver Gierke
a4614ca64a DATAJPA-1064 - Cleanups! Cleanups everywhere! 2017-03-24 08:07:12 +01:00
Oliver Gierke
d60c0cb513 DATAJPA-1064 - Fixed spelling in Querydsl types. 2017-03-24 08:07:12 +01:00