283 Commits

Author SHA1 Message Date
Spring Buildmaster
c7ee50580b DATAJPA-294 - Prepare next development iteration. 2013-02-07 07:03:01 -08:00
Spring Buildmaster
e938b4d2e8 DATAJPA-294 - Release version 1.2.1.RELEASE. 2013-02-07 07:02:58 -08:00
Oliver Gierke
0bc9ed4146 DATAJPA-294 - Updated changelog for 1.2.1. 2013-02-07 15:38:57 +01:00
Oliver Gierke
bbb5edc4c0 DATAJPA-294 - Upgraded to Spring Data Commons 1.4.1. 2013-02-07 15:31:16 +01:00
Thomas Darimont
71b848467f DATAJPA-266 - Fixed SimpleJpaRepository.exists(…) for composite ids.
We now build a correct count query for entities that use a compound key mapped using @IdClass. Added integration tests for EclipseLink and OpenJPA to run the basic tests of SimpleJpaRepository against different persistence providers. Ignored failing test against OpenJPA.
2013-01-28 10:59:58 +01:00
Oliver Gierke
52cccbb5d2 DATAJPA-277 - Specification execution with sorting now uses left joins where necessary.
When applying sorting options to a Specification based query we have to make sure to apply left joins where necessary as we otherwise exclude results with null associations. Applying the sort options does an enhanced inspection of the target path and declares a left join instead of a get if the path logically points to an entity. The Metamodel API is not without caveats here, see http://bit.ly/10geC02.
2013-01-17 15:38:08 +01:00
Oliver Gierke
68065e6530 DATACMNS-263 - Upgraded to OpenWebbeans 1.1.7 for testing. 2013-01-05 19:39:20 +01:00
Oliver Gierke
b7e1e2fcde DATAJPA-272 - Polished logging setup to reduce noise in test cases. 2012-11-27 16:17:51 +01:00
Oliver Gierke
4b99eadd1d DATAJPA-271 - Switched to Logback for test logging. 2012-11-19 23:47:14 +01:00
Oliver Gierke
da8b82e774 DATAJPA-254 - Upgrade dependency to Spring Data Commons in 1.4.1.BUILD-SNAPSHOT. 2012-11-13 15:47:23 +01:00
Oliver Gierke
d8dd6fc8c4 DATAJPA-268 - LockModePopulatingMethodInterceptor cleans up resources correctly.
LockModePopulatingMethodInterceptor now safely unbinds the LockModeMetadata after the target method invocation completes.
2012-11-13 15:46:24 +01:00
Spring Buildmaster
b40db7fee2 DATAJPA-254 - Prepare next development iteration. 2012-11-13 15:46:07 +01:00
Spring Buildmaster
1e74b65f95 DATAJPA-254 - Release version 1.2.0.RELEASE. 2012-10-10 04:34:27 -07:00
Oliver Gierke
ca160313f6 DATAJPA-254 - Updates of reference documentation and changelog. 2012-10-10 13:26:39 +02:00
Oliver Gierke
77e803efec DATAJPA-254 - Upgrade to Spring Data Commons 1.4.0.RELEASE. 2012-10-10 13:26:16 +02:00
Oliver Gierke
6c59f05a94 DATAJPA-262 - Added JUnit exclusion for transitive dependency. 2012-10-09 09:03:06 +02:00
Oliver Gierke
aefa75107a DATAJPA-260 - Upgraded to Querydsl APT processor 1.0.4. 2012-10-08 14:50:14 +02:00
Oliver Gierke
c77828de9e DATAJPA-259 - Upgraded to Querydsl 2.8.0. 2012-10-08 14:49:09 +02:00
Oliver Gierke
e28b6fc522 DATAJPA-257 - Make count query execution in SimpleJpaRepository more robust.
The execution of a count query can potentially return multiple values instead of just a single one. This causes persistence providers to throw an exception as we trigger ….getSingleResult() in SimpleJpaRepository. We're now calling …getResultList() and sum up all values returned.
2012-09-21 15:17:08 +02:00
Oliver Gierke
3b2818df9a DATAJPA-251 - Polished reference documentation. 2012-09-17 16:27:40 +02:00
Oliver Gierke
918099e395 DATAJPA-253 - Fixed application of Specifications.not(…).
Specifications.not(…) now also gets applied correctly when used without where(…) wrapper. Polished Specifications class, JavaDoc and added not null assertions.
2012-08-30 11:36:09 +02:00
Oliver Gierke
a9cfe73511 DATAJPA-252 - Applying sort to manually defined queries considers joins.
If a manually defined query uses outer joins, prefixing the sort criteria handed to the execution of the method causes an additional join being added as the JPA considers path expressions to be inner joins always (see Sect. 4.4.4, JPA 2.0 spec).

We now parse the outer join aliases potentially used in a manually defined JPQL query and do not prefix the query with the root entity's alias.
2012-08-29 17:16:33 +02:00
Spring Buildmaster
0e6c4fd36a DATAJPA-246 - Prepare next development iteration. 2012-08-24 02:19:07 -07:00
Spring Buildmaster
2548cb19ef DATAJPA-246 - Release 1.2.0.RC1. 2012-08-24 02:19:05 -07:00
Oliver Gierke
83345426b7 DATAJPA-246 - Updated changelog for 1.2.0.RC1. 2012-08-24 11:11:35 +02:00
Oliver Gierke
33912ce9ff DATAJPA-246 - Updated to Spring Data Commons 1.4.0.RC1. 2012-08-23 20:11:41 +02:00
Oliver Gierke
c18fd47b31 DATAJPA-249 - Make Spring 3.1.2.RELEASE default Spring dependency version.
We move away from Maven version ranges as they complicate the build and dependency resolution process. They make the build in-reproducible. Users stuck with a 3.0.x version of Spring will now have to manually declare Spring dependencies in their needed 3.0.x version. Not that at least Spring 3.0.7 is required currently.
2012-08-20 17:07:59 +02:00
Oliver Gierke
009a24599c DATAJPA-246 - Upgrade to Spring Data Commons 1.4.0.BUILD-SNAPSHOT. 2012-08-16 16:11:57 +02:00
Oliver Gierke
732d6ec261 DATAJPA-244 - Use ClassLoader of EntityManager for implementation lookup.
JpaClasUtils.isEntityManagerOfType(…) now uses the given EntityManager's ClassLoader to try to load the given concrete classname. We're actually using the EntityManager's delegate here which is usually some provider specific implementation (e.g. a Hibernate Session). This assumes that the ClassLoader who initially loaded the class to create the delegate instance will also see the special EntityManager interface.
2012-08-13 18:52:50 +02:00
Oliver Gierke
317dcc3cf1 DATAJPA-245 - Listing all compile time dependencies directly.
We've been relying on some compile time dependencies being pulled in transitively. This is now fixed by declaring those locally.
2012-08-13 14:58:26 +02:00
Oliver Gierke
32dbd52c57 DATAJPA-69 - @EnableJpaRepositories is now inherited into sub-classes. 2012-08-13 11:29:28 +02:00
Oliver Gierke
e59b8b3194 DATAJPA-243 - QueryDslJpaRepository applies sort given through Pageable correctly.
During the refactoring of the Querydsl interaction a regression of not applying a Sort wrapped in a Pageable was introduced in QueryDsl utility class.
2012-08-13 10:28:12 +02:00
Oliver Gierke
c90d1c122d DATAJPA-241 - Polished logging in NamedQuery. 2012-08-02 11:04:20 +02:00
Oliver Gierke
54675ffd53 DATAJPA-239 - Fixed namespace reference to repository XSD. 2012-07-31 11:27:50 +02:00
Spring Buildmaster
0273aeb5cc DATAJPA-235 - Prepare next development iteration. 2012-07-23 11:04:36 -07:00
Spring Buildmaster
648a73dc2d DATAJPA-235 - Release 1.2.0.M1. 2012-07-23 11:04:34 -07:00
Oliver Gierke
e3f95345c0 DATAJPA-235 - Prepare changelog for 1.2.0.M1. 2012-07-23 19:59:48 +02:00
Oliver Gierke
2d4bca7a4d DATAJPA-227 - Improved documentation on native queries with @Query. 2012-07-23 19:59:48 +02:00
Oliver Gierke
19d2f6166f DATAJPA-235 - Upgrade to Spring Data Commons 1.4.0.M1. 2012-07-23 19:59:43 +02:00
Oliver Gierke
372ac45922 DATAJPA-232 - Fixed parameter binding in SimpleJpaRepository.findAll(Iterable<ID> ids).
We bound the given Iterable<ID> using List as parameter type which gets rejected if you hand in something that's not a List actually (e.g. HashSet). Changed parameter binding to hand in Iterable now.
2012-07-19 09:58:39 +02:00
Oliver Gierke
42718c57fe Check OpenJpa query validation. 2012-07-18 11:35:04 +02:00
Oliver Gierke
9734010d8e DATAJPA-226 - Working around ambiguities in the JPA spec.
We now expect a much broader range of exceptions possibly popping up from EntityManager.createQuery(…). It turns out the spec is not very strict about what must be returned from the call in case the provided query String is invalid. E.g. Hibernate seems to throw an IllegalStateException in case the query seems generally acceptable but has a typo in some keyword.

We now catch RuntimeException invoking the call and simply rethrow the original exception if it is an IllegalArgumentException indeed but wrap any other into an IAE.

See http://java.net/projects/jpa-spec/lists/jsr338-experts/archive/2012-07/message/17
2012-07-17 11:41:26 +02:00
Oliver Gierke
2087ce29d2 DATAJPA-69 - Added JavaConfig support for repositories.
The repositories can now be bootstrapped using @EnableJpaRepositories annotation as follows:

@Configuration
@EnableJpaRepositories
class ApplicationConfig {
  
  // … declare EntityManagerFactory
  // … declare PlatformTransactionManager
}
2012-07-16 20:25:49 +02:00
Oliver Gierke
de16544194 DATAJPA-226 - Test case failing to reproduce the issue. 2012-07-16 17:19:06 +02:00
Oliver Gierke
6e272ed9c0 DATAJPA-229 - Upgraded to Hibernate 3.6.10 and EclipseLink 2.4.0. 2012-07-13 18:21:27 +02:00
Oliver Gierke
c27fa47845 Disable parallel test execution. 2012-06-06 13:28:06 +02:00
Oliver Gierke
18b9fc1161 DATAJPA-212 - Upgrade to Spring Data Commons 1.4.x branch. 2012-06-06 13:21:31 +02:00
Oliver Gierke
4c1a1450b9 DATAJPA-176 - Introduce Querydsl abstraction.
Introduced Querydsl helper class to allow using more functionality from QuerydslJpaRepository as well as QuerydslRepositorySupport. Moved applyPagination(…) and applySorting(…) methods into that helper class. Removed QuerydslUtils and moved functionality into Querydsl helper.

This change breaks exposed API in Querydsl repo and repo support classes.
2012-06-04 16:33:58 +02:00
Oliver Gierke
fe47b145b7 DATAJPA-217 - Added Hibernate JPA model generator.
We now distribute the JPA Criteria API meta-model classes for AbstractPersistable and AbstractAuditable.
2012-06-01 14:50:18 +02:00
Oliver Gierke
762567ca38 DATAJPA-215 - Fixed OSGi bundle identifier to base package. 2012-05-23 18:20:55 +02:00