Switch branches/tags
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 …

    olivergierke committed Sep 21, 2012
    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.
Commits on Sep 17, 2012
Commits on Aug 30, 2012
  1. DATAJPA-253 - Fixed application of Specifications.not(…).

    olivergierke committed Aug 30, 2012
    Specifications.not(…) now also gets applied correctly when used without where(…) wrapper. Polished Specifications class, JavaDoc and added not null assertions.
Commits on Aug 29, 2012
  1. DATAJPA-252 - Applying sort to manually defined queries considers joins.

    olivergierke committed Aug 29, 2012
    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.
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…

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

    olivergierke committed Aug 13, 2012
    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.
  2. DATAJPA-245 - Listing all compile time dependencies directly.

    olivergierke committed Aug 13, 2012
    We've been relying on some compile time dependencies being pulled in transitively. This is now fixed by declaring those locally.
  3. DATAJPA-243 - QueryDslJpaRepository applies sort given through Pageab…

    olivergierke committed Aug 13, 2012
    …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.
Commits on Aug 2, 2012
Commits on Jul 31, 2012
Commits on Jul 23, 2012
Commits on Jul 19, 2012
  1. DATAJPA-232 - Fixed parameter binding in SimpleJpaRepository.findAll(…

    olivergierke committed Jul 19, 2012
    …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.
Commits on Jul 18, 2012
Commits on Jul 17, 2012
  1. DATAJPA-226 - Working around ambiguities in the JPA spec.

    olivergierke committed Jul 17, 2012
    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.
Commits on Jul 16, 2012
  1. DATAJPA-69 - Added JavaConfig support for repositories.

    olivergierke committed Dec 2, 2011
    The repositories can now be bootstrapped using @EnableJpaRepositories annotation as follows:
    class ApplicationConfig {
      // … declare EntityManagerFactory
      // … declare PlatformTransactionManager
Commits on Jul 13, 2012
Commits on Jun 6, 2012