Commit Graph

2101 Commits

Author SHA1 Message Date
Mark Paluch
302fa6335f DATACMNS-1713 - After release cleanups. 2020-05-12 12:40:30 +02:00
Mark Paluch
b06215a239 DATACMNS-1713 - Prepare next development iteration. 2020-05-12 12:40:28 +02:00
Mark Paluch
a038ff5efc DATACMNS-1713 - Release version 2.3 GA (Neumann). 2020-05-12 12:28:23 +02:00
Mark Paluch
017c8d2fd2 DATACMNS-1713 - Prepare 2.3 GA (Neumann). 2020-05-12 12:27:59 +02:00
Mark Paluch
ee91f0ab4a DATACMNS-1713 - Updated changelog. 2020-05-12 12:27:44 +02:00
Mark Paluch
7de360cb7b DATACMNS-1676 - Polishing.
Encapsulate field and introduce getter for ConversionService. Add missing Override annotation. Add author tags. Minor cleanups.

Original pull request: #432.
2020-05-12 10:42:01 +02:00
Pavel Horal
f2f7886105 DATACMNS-1676 - Create shared conversion service for AuditableBeanWrapper.
Prevent performance penalty in creating conversion service each time a domain object is being persisted.

Original pull request: #432.
2020-05-12 10:41:27 +02:00
Cicio Flaviu
d9a1f65f05 DATACMNS-1720 - Fix Javadoc for CustomAnnotationTransactionAttributeSource to correctly describe JTA support.
Original pull request: #441.
2020-05-12 10:21:09 +02:00
John Gesimondo
796c86903c DATACMNS-1713 - Fix typo in doc.
Original pull request: #442.
2020-05-12 10:10:32 +02:00
Christoph Strobl
7c883acece DATACMNS-1721 - Lazily evaluate potential property matches in PropertyReferenceException.
Original pull request: #443.
2020-05-12 09:43:35 +02:00
Oliver Drotbohm
0d4b764c2c DATACMNS-1722 - More defensive lookup of XmlBeamHttpMessageConverter.
We now avoid a type reference to XmlBeamHttpMessageConverter in a field within SpringDataWebConfiguration to avoid a type reference to a potentially unresolvable type. This seems to have caused issues on certain JDK 14 builds [0].

[0] https://github.com/spring-projects/spring-framework/issues/25050
2020-05-12 09:03:17 +02:00
Mark Paluch
152cee7956 DATACMNS-1718 - Migrate tests to JUnit 5. 2020-05-07 11:16:29 +02:00
Mark Paluch
024f87906b DATACMNS-1717 - Mention performance behavior of Lambda EntityCallbacks in reference documentation. 2020-05-06 12:28:00 +02:00
Greg Turnquist
63d868f452 DATACMNS-1715 - Remove Travis CI. 2020-05-04 14:16:18 -05:00
Mark Paluch
14d5747f68 DATACMNS-1694 - After release cleanups. 2020-04-28 15:11:43 +02:00
Mark Paluch
e5ecd556b8 DATACMNS-1694 - Prepare next development iteration. 2020-04-28 15:11:42 +02:00
Mark Paluch
3019b7954a DATACMNS-1694 - Release version 2.3 RC2 (Neumann). 2020-04-28 15:03:53 +02:00
Mark Paluch
832b845244 DATACMNS-1694 - Prepare 2.3 RC2 (Neumann). 2020-04-28 15:03:33 +02:00
Mark Paluch
9887dbee19 DATACMNS-1694 - Updated changelog. 2020-04-28 15:03:21 +02:00
Mark Paluch
4de5913441 DATACMNS-1690 - Updated changelog. 2020-04-28 14:46:49 +02:00
Mark Paluch
141a2f33f8 DATACMNS-1674 - Updated changelog. 2020-04-28 11:59:00 +02:00
Mark Paluch
d2d07fbec5 DATACMNS-1710 - Polishing.
Reformat code. Skip parameter inspection if constructor has no parameters.

Original pull request: #440.
2020-04-27 15:20:37 +02:00
Christoph Strobl
03832c36a4 DATACMNS-1710 - Avoid potentially expensive constructor parameter creation where possible.
Reorder constructor filtering with the goal to delay/avoid potentially expensive PersistenceConstructor creation with parameter lookup as much as possible.

The lookup is (in a default setup) only done once per domain type, but depending on the number of entities to inspect the change can help save some cycles for larger domains.

Before:
Benchmark                                  Mode  Cnt         Score         Error  Units
EntityMetadataBenchmark.alwaysNew         thrpt   10    224318,163 ±   42542,453  ops/s

After:
Benchmark                                  Mode  Cnt         Score         Error  Units
EtityMetadataBenchmark.alwaysNew         	thrpt   10    420053,505 ±    9288,093  ops/s

public class DomainType {

	private String id;
	private @Id String theId;

	private String firstname, lastname;
	private Integer age;

	public DomainType(String id, String theId, String firstname, String lastname, Integer age) {
		this.id = id;
		this.theId = theId;
		this.firstname = firstname;
		this.lastname = lastname;
		this.age = age;
	}

	@PersistenceConstructor
	public DomainType(String firstname, String lastname) {

		this.firstname = firstname;
		this.lastname = lastname;
	}
}

Original pull request: #440.
2020-04-27 15:20:30 +02:00
Mark Paluch
03d5498c22 DATACMNS-1707 - Make CoroutineCrudRepository.deleteAll(Flow) suspended.
Delete by Flow is now suspended as the delete method completion is driven by the given Flow. To allow for synchronization, this method is suspended and awaits completion.
2020-04-23 11:33:07 +02:00
Greg Turnquist
ee207291b4 DATACMNS-1701 - Use JDK 14 for Java.NEXT CI testing. 2020-04-09 13:46:35 -05:00
Mark Paluch
461647403d DATACMNS-1698 - Reduce allocations in EntityCallbackDiscoverer.
We now detect whether callbacks are present before we create result lists instead of always allocating a Collection. CallbackRetriever now also returns a cached variant of its list of callbacks instead of always allocating a new ArrayList.
2020-04-06 14:34:18 +02:00
Mark Paluch
c3b107c034 DATACMNS-1680 - After release cleanups. 2020-03-31 15:08:05 +02:00
Mark Paluch
4fc3a8ea5c DATACMNS-1680 - Prepare next development iteration. 2020-03-31 15:08:04 +02:00
Mark Paluch
8f7610ec6b DATACMNS-1680 - Release version 2.3 RC1 (Neumann). 2020-03-31 14:59:41 +02:00
Mark Paluch
f1757364f9 DATACMNS-1680 - Prepare 2.3 RC1 (Neumann). 2020-03-31 14:59:20 +02:00
Mark Paluch
448323851c DATACMNS-1680 - Updated changelog. 2020-03-31 14:59:11 +02:00
Oliver Drotbohm
6b581927c9 DATACMNS-1691 - Update .gitignore to include more STS config files. 2020-03-26 13:45:27 +01:00
Mark Paluch
20acc8707e DATACMNS-1675 - Updated changelog. 2020-03-25 10:59:46 +01:00
Mark Paluch
a0abf009a0 DATACMNS-1689 - Resolve suspendable query method result type from Continuation parameter.
Kotlin coroutine methods are compiled returning Object so the original return type gets lost. We resolve the return type from the Continuation parameter that synthetized as last parameter in a coroutine method declaration.
2020-03-19 10:45:27 +01:00
Mark Paluch
f047743cfa DATACMNS-1683 - Rebuild quotation index from rewritten SpEL query.
We now use the correct quotation map that is based on the rewritten SpEL query to detect whether an expression was quoted.
Previously, we used the quotation map from the original query.
After augmenting the query with synthetic parameters, the quotation offset no longer matched the query that ß∑was under inspection and calls to SpelExtractor.isQuoted(…) could report an improper result.

Original pull request: #434.
2020-03-17 11:02:10 +01:00
Mark Paluch
69e6958aa2 DATACMNS-1683 - Polishing.
Trim trailing whitespaces.

Original pull request: #434.
2020-03-17 11:01:24 +01:00
Mark Paluch
582242e76b DATACMNS-1685 - Provide documentation for custom conversions.
Add common section to be included in documentation.
2020-03-17 10:33:47 +01:00
Mark Paluch
e962f6bfc3 DATACMNS-1684 - Polishing.
Reformat sources.
2020-03-17 10:05:55 +01:00
Mark Paluch
ecab3bc5a9 DATACMNS-1684 - Fix grammar in reference documentation. 2020-03-17 10:05:22 +01:00
Mark Paluch
54d9f01619 DATACMNS-658 - Polishing.
Introduce caseSensitive() flag to `@SortDefault`. Move sort spec parsing into parser class. Update documentation.

Original pull request: #172.
2020-03-11 10:18:54 +01:00
Dan Nawrocki
9ef3099711 DATACMNS-658 - Add IgnoreCase ordering option to SortHandlerMethodArgumentResolver.
We now pick up case-insensitive sorting flags by parsing it up from a sort query string argument.

To enable ignore case for one or more properties, we expect "ignorecase" as last element in a sort spec. Sort order and case-sensitivity options are parsed case-insensitive for a greater flexibility:

http://localhost/?sort=firstname,IgnoreCase or http://localhost/?sort=firstname,ASC,ignorecase

Original pull request: #172.
2020-03-11 10:15:29 +01:00
Jens Schauder
f2a6391273 DATACMNS-1667 - After release cleanups. 2020-03-11 09:57:42 +01:00
Jens Schauder
7e4f930078 DATACMNS-1667 - Prepare next development iteration. 2020-03-11 09:57:41 +01:00
Jens Schauder
f42236c4a8 DATACMNS-1667 - Release version 2.3 M4 (Neumann). 2020-03-11 09:47:07 +01:00
Jens Schauder
0eb397e974 DATACMNS-1667 - Prepare 2.3 M4 (Neumann). 2020-03-11 09:46:29 +01:00
Jens Schauder
a96da8107a DATACMNS-1667 - Updated changelog. 2020-03-11 09:46:15 +01:00
Mark Paluch
4bd49f3f01 DATACMNS-1679 - Make ReactiveWrappers.ReactiveLibrary public.
Fix visibility for type that is used in the public API.
2020-03-11 08:47:42 +01:00
Mark Paluch
3831332f26 DATACMNS-1650 - Updated changelog. 2020-02-26 11:55:04 +01:00
Mark Paluch
5a3182aa18 DATACMNS-1648 - Updated changelog. 2020-02-26 11:31:47 +01:00
Mark Paluch
ed7561a880 DATACMNS-1673 - Polishing.
Convert instance field to constant. Use parameter count for iteration instead of cloning the parameter array.

Original pull request: #426.
2020-02-25 09:43:16 +01:00