Commits on Feb 7, 2013
Commits on Jan 28, 2013
  1. 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.
    thomasdarimont committed with olivergierke Jan 26, 2013
Commits on Jan 17, 2013
  1. DATAJPA-277 - Specification execution with sorting now uses left join…

    …s 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
    olivergierke committed Jan 17, 2013
Commits on Jan 5, 2013
Commits on Nov 27, 2012
Commits on Nov 19, 2012
Commits on Nov 13, 2012
  1. DATAJPA-268 - LockModePopulatingMethodInterceptor cleans up resources…

    … correctly.
    LockModePopulatingMethodInterceptor now safely unbinds the LockModeMetadata after the target method invocation completes.
    olivergierke committed Nov 6, 2012
Commits on Oct 10, 2012
Commits on Oct 9, 2012
Commits on Oct 8, 2012
Commits on Sep 21, 2012
  1. DATAJPA-257 - Make count query execution in SimpleJpaRepository more …

    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.
    olivergierke committed Sep 21, 2012
Commits on Sep 17, 2012
Commits on Aug 30, 2012
  1. 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.
    olivergierke committed Aug 30, 2012
Commits on Aug 29, 2012
  1. 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.
    olivergierke committed Aug 29, 2012
Commits on Aug 24, 2012
Commits on Aug 23, 2012
Commits on Aug 20, 2012
  1. DATAJPA-249 - Make Spring 3.1.2.RELEASE default Spring dependency ver…

    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.
    olivergierke committed Aug 20, 2012
Commits on Aug 16, 2012
Commits on Aug 13, 2012
  1. DATAJPA-244 - Use ClassLoader of EntityManager for implementation loo…

    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.
    olivergierke committed Aug 13, 2012
  2. 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.
    olivergierke committed Aug 13, 2012
  3. DATAJPA-243 - QueryDslJpaRepository applies sort given through Pageab…

    …le 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.
    olivergierke committed Aug 13, 2012
Commits on Aug 2, 2012
Commits on Jul 31, 2012
Commits on Jul 23, 2012