Commit Graph

1103 Commits

Author SHA1 Message Date
Mark Paluch
b171759d0d DATAJPA-1640 - Updated changelog. 2020-01-15 10:36:35 +01:00
Oliver Drotbohm
f63fcc950f DATAJPA-1663 - Polishing.
Removed QueryExtractor from JpaQueryLookupStrategy entirely as it's not needed anymore. Slightly adapted method signatures for consistent parameter order.

Original pull request: #408.
2020-01-14 13:36:23 +01:00
Jens Schauder
f9a2dba058 DATAJPA-1663 - Removes superfluous method from PersistenceProvider.
PersistenceProvider.potentiallyConvertEmptyCollection(…) is no longer necessary. The single relevant implementation got inlined in the single usage location. This in turn made a bunch of PersistenceProvider passing around superfluous which in turn get removed as well.

Original pull request: #408.

Signed-off-by: Jens Schauder <jschauder@pivotal.io>
2020-01-14 13:36:23 +01:00
Oerd Cukalla
95d4775be2 DATAJPA-1664 - Fixes typos in documentation of @EntityGraph.
Original pull request: #407.
2020-01-14 11:06:23 +01:00
Jens Schauder
4c6279e4ea DATAJPA-1497 - Polishing.
Moved JpaQueryMethodFactory creation into a separate class.
Removed http URL in copyright statement.
Simplified bean injection of JpaQueryMethodFactory.build

Originial pull request: #305.

Signed-off-by: Jens Schauder <jschauder@pivotal.io>
2020-01-14 08:14:00 +01:00
Jens Schauder
85e4ffaa46 DATAJPA-1497 - Polishing.
Improved naming and formatting.
Made the `QueryExtractor` an argument of the `JpaQueryMethodFactory` constructor instead of its method.

Original pull request: #305.
2020-01-13 17:06:42 +01:00
Réda Housni Alaoui
8f5f3af699 DATAJPA-1497 - Allow to add a special parameter type from a Spring Data JPA extension.
This change allows to add a special parameter type by overriding org.springframework.data.jpa.repository.query.JpaParameters.JpaParameter.isBindable().

A "special parameter type" is a type of parameter that does not get bound to the query via the normal mechanism but gets some special treatment like `Class` or `Pageable`).

Original pull request: #305.
2020-01-13 17:03:12 +01:00
Mark Paluch
211f1e046b DATAJPA-1631 - Enable building on Java 11.
Switch to working AspectJ Maven plugin. Truncate JSR-310 comparison precision to millis.
2020-01-09 10:26:56 -06:00
Jens Schauder
25ebe74915 DATAJPA-1647 - Removes broken caching of ParameterBinder.
The caching was broken because ParameterMetadata used for the key lacked a proper equals and hashCode implementation.
Also it references the EntityManager and itself gets referenced in the ParameterBinder and therefore can't safely be cached.

Signed-off-by: Jens Schauder <jschauder@pivotal.io>
Original pull request: #402.
2020-01-09 09:37:46 +01:00
Jens Schauder
26311d5fba DATAJPA-1652 - Polishing.
Streamlined assertion.
Removed a superfluous `public`.

Original pull request: #405.
2020-01-07 17:49:07 +01:00
reta
60241e7757 DATAJPA-1652 - Support for operators to directly follow named parameters.
Since `\P{P}` doesn't include things like `<`, `>`, or `|` those where considered part of the parameter name when they weren't separated from it by whitespace.
This is now fixed.

Original pull request: #405.
2020-01-07 17:45:12 +01:00
Mark Paluch
e27933455e DATAJPA-1656 - Update copyright years to 2020. 2020-01-07 08:54:46 +01:00
SergiiTsypanov
9d5c13e018 DATAJPA-1654 - Ensure repositories in tests declare the correct ID type. 2020-01-02 13:44:29 +01:00
Jens Schauder
d8f44f854c DATAJPA-1634 - Updated changelog. 2019-12-04 14:32:42 +01:00
Jens Schauder
0332ddc927 DATAJPA-1633 - Updated changelog. 2019-12-04 12:09:44 +01:00
Jens Schauder
4dffd68db3 DATAJPA-1639 - Polishing.
Improved source layout of the changed section.
Fixed one more occurrence of `_Customer` to `Customer_`.

Signed-off-by: Jens Schauder <jschauder@pivotal.io>
2019-12-02 12:30:46 +01:00
choubani amir
241efcd471 DATAJPA-1639 - Fix position of _ in MetaModel classes in the documentation.
According to hibernate documentation, The name of the metamodel class is derived from the name of the managed class by appending "_" to the name of the managed class.
2019-12-02 12:26:28 +01:00
Mark Paluch
43ff73d485 DATAJPA-1623 - Updated changelog. 2019-11-18 12:43:25 +01:00
Mark Paluch
0a36023beb DATAJPA-1621 - Updated changelog. 2019-11-18 12:16:26 +01:00
tinhcao
762ae90106 DATAJPA-1632 - Update countQuery documentation.
It now reflects the behavior it has since version 1.6.

Original pull request: #399
2019-11-14 10:11:24 +01:00
Jens Schauder
b59ca531f5 DATAJPA-1619 - Polishing.
Simplified code.
Fixed `@Nullable` annotation.
Improved documentation.

Original pull request: #396.
2019-11-11 14:26:36 +01:00
Jens Schauder
6a868d09d0 DATAJPA-1619 - in/notIn predicate now accept Iterable arguments.
Original pull request: #396.
2019-11-11 14:26:30 +01:00
Christoph Strobl
2be332c51d DATAJPA-1606 - Updated changelog. 2019-11-04 15:39:52 +01:00
Christoph Strobl
df84bffd9f DATAJPA-1605 - Updated changelog. 2019-11-04 10:34:48 +01:00
luvarqpp
d7e4652091 DATAJPA-1617 - Fix quotation on IsEndingWith in documentation.
Fixing typo corrupting formatting of documentation.

Original pull request: #393.
2019-10-28 09:38:43 +01:00
Mark Paluch
bf97aec314 DATAJPA-1583 - Prepare 2.2 GA (Moore). 2019-09-30 15:50:43 +02:00
Mark Paluch
e674737bd7 DATAJPA-1583 - Updated changelog. 2019-09-30 15:50:34 +02:00
Mark Paluch
52a9487c93 DATAJPA-1581 - Updated changelog. 2019-09-30 11:16:15 +02:00
Oliver Drotbohm
bbd267313f DATAJPA-1604 - Moved off deprecated constructors of QPageRequest in tests. 2019-09-25 14:02:08 +02:00
Mark Paluch
cf378dc14a DATAJPA-1584 - Prepare 2.2 RC3 (Moore). 2019-09-06 10:10:12 +02:00
Mark Paluch
f31a475437 DATAJPA-1584 - Updated changelog. 2019-09-06 10:10:03 +02:00
Oliver Drotbohm
04d0aa140f DATAJPA-1594 - Polishing.
Formatting and whitespace.
2019-08-28 14:32:22 +02:00
Oliver Drotbohm
62273d430d DATAJPA-1594 - Revised nullability enforcement in Querydsl. 2019-08-28 14:32:08 +02:00
Oliver Drotbohm
ef02827311 DATAJPA-1600 - Document recommended pattern for entities with manually assigned identifiers. 2019-08-28 13:18:12 +02:00
Mark Paluch
70af45101c DATAJPA-1372 - Polishing.
Fix typo.
2019-08-06 15:50:59 +02:00
Mark Paluch
b45f79372b DATAJPA-1582 - Add HTTPS entries into spring.schemas.
To resolve XSD files properly from the classpath, their HTTPS reference must be present in the spring.schemas to avoid internet interaction for resolving an XSD file.
2019-08-06 15:44:29 +02:00
Mark Paluch
651a0cd0eb DATAJPA-1559 - Prepare 2.2 RC2 (Moore). 2019-08-05 15:35:05 +02:00
Mark Paluch
ff5eed0774 DATAJPA-1559 - Updated changelog. 2019-08-05 15:34:55 +02:00
Mark Paluch
b7a6484e23 DATAJPA-1558 - Updated changelog. 2019-08-05 11:34:25 +02:00
Mark Paluch
2e090c1eee DATAJPA-1543 - Updated changelog. 2019-08-05 11:08:58 +02:00
Oliver Drotbohm
74e1021b22 DATACMNS-1580 - Fix EntityManagerFactory lookup in BeanDefinitionUtils.
We now use a set to collect all the EntityManagerBeanDefinitions returned from the application context. Spring Framework recently changed the bean names by type lookup behavior to also consider the return type of a factory bean so that we now see Spring defined EntityManagerFactory beans twice as we look them up via the EMF interface as well as via AbstractEntityManagerFactoryBean. Using a set as the target unifies them into one logical bean definition again.
2019-08-01 23:05:13 +02:00
Mark Paluch
a01f71053d DATAJPA-1575 - Conditionally register SurroundingTransactionDetectorMethodInterceptor.
We now register SurroundingTransactionDetectorMethodInterceptor only for interfaces that return a Stream to detect a surrounding transaction.
2019-07-26 14:19:38 +02:00
Mark Paluch
74ff5b3a65 DATAJPA-1575 - Introduce QueryMetadataCache. 2019-07-26 14:19:38 +02:00
Mark Paluch
6e2032e7b6 DATAJPA-1575 - Limit CrudMethodMetadataPostProcessor to implementation methods.
Also, merge CrudMethodMetadataPostProcessor with ExposeRepositoryInvocationInterceptor as exposing the MethodInvocation is only required for CrudMethodMetadata.
2019-07-26 14:19:38 +02:00
Oliver Drotbohm
dfc79193b4 DATAJPA-1575 - Avoid the use of Optional in AbstractJpaQuery.getTypeToRead(…). 2019-07-26 14:19:38 +02:00
Mark Paluch
ab9a9bc0fc DATAJPA-1575 - Reuse annotation lookup results and eliminate Stream usage.
Evaluate JpaQuery-kind once instead for each invocation as the method signature isn't changing between invocations. Add early returns. Reuse cached annotation lookup results. Replace forEach calls with for-loops.
2019-07-26 14:19:38 +02:00
Mark Paluch
10d7339799 DATAJPA-1575 - Consistent use of JpaParametersParameterAccessor.
We now reuse JpaParametersParameterAccessor as much as possible to avoid constant recreation. This change required several signature changes to accept JpaParametersParameterAccessor instead of raw Object[] values.
2019-07-26 14:19:38 +02:00
Jens Schauder
ae594415de DATAJPA-1579 - Polishing.
Formatting the code.

Original pull request: #390.
2019-07-23 11:14:15 +02:00
Jens Schauder
56c95011d5 DATAJPA-1579 - Removed the Optional in return Map for StoredProcedures again.
The original NullPointerException was caused by a known bug in the JDK.
While using Optional is a valid workaround Optional (and Stream) have been sources of performance degradations.
Therefore I removed the Optional and the Stream based implementation and replaced it with an iterative one.

Original pull request: #390.

See also: https://stackoverflow.com/questions/24630963/java-8-nullpointerexception-in-collectors-tomap
2019-07-23 11:14:15 +02:00
JyotirmoyVS
99d537402b DATAJPA-1579 - Support multiple out parameters with nullable output data ad hoc stored procedure.
Original pull request: #390.
2019-07-23 11:13:41 +02:00