Switch branches/tags
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
Commits on Jun 4, 2012
  1. DATAJPA-176 - Introduce Querydsl abstraction.

    olivergierke committed Jun 4, 2012
    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.
Commits on Jun 1, 2012
  1. DATAJPA-217 - Added Hibernate JPA model generator.

    olivergierke committed Jun 1, 2012
    We now distribute the JPA Criteria API meta-model classes for AbstractPersistable and AbstractAuditable.
Commits on May 23, 2012
Commits on May 16, 2012
  1. DATAJPA-212 - Polished pom for release.

    olivergierke committed May 16, 2012
    Removed obsolete staging profile. Fixed inception year. Fixed site deployment URL. Removed deployment repositories as we're releasing through Artifactory.
  2. DATAJPA-211 - Documented CDI integration.

    olivergierke committed May 16, 2012
    Added brief section on how to use the CDI extension. Poslished documentation in general: updated copyright year, removed revision history, fixed links to Maven repositories, added missing section ids to create stable links, improved CSS for HTML rendering, improved PDF rendering.
  3. DATACMNS-171 - Let JpaQueryMethod new method of QueryMethod.

    olivergierke committed May 16, 2012
    Drop custom method to determine whether a query method returns an entity and rather use the newly introduced method in Spring Data Commons' QueryMethod.
Commits on May 15, 2012
  1. Improve project setup.

    olivergierke committed May 15, 2012
    Reactivated test cases that were not executed because they were named *Test, not *Tests. Upgraded to Maven Surefire Plugin 2.12 and activated parallel test execution per method. Upgraded Maven Compiler Plugin to 2.4.
  2. DATAJPA-207 - Fixed query creation for projections on native queries.

    olivergierke committed May 15, 2012
    When executing a projecting query through a native query we must not use em.createNativeQuery(String, Class<?>) as this expects an entity type as type parameter. We now use the newly introduced isQueryMethodForEntity() on JpaQueryMethod to determine whether the query is actually projecting and rather use the plain em.createNativeQuery(String).
    Fixed dependency configuration for Hamcrest and JUnit (upgrade to JUnit 4.10, depending on junit-dep).
Commits on May 11, 2012
  1. DATAJPA-210 - System property control of Bundlor configuration

    nebhale authored and olivergierke committed May 11, 2012
    Added the ability to control whether Bundlor will fail on warnings or whether it is enabled at all, using Java system properties. By default, Bundlor will be enabled and will fail on warnings. Specifying `-DfailOnWarnings=true/false` and `-Dbundlor.enabled=true/false` as part of the Maven command will now
    control Bundlor's operation.
Commits on May 2, 2012
Commits on Apr 27, 2012
  1. DATAJPA-201 - Fixed NullPointerException for null Pageables.

    olivergierke committed Apr 27, 2012
    The optimization for DATAJPA-124 introduced a NullPointerException being thrown if the Pageable instance handed to a paging query was null. Added a guard to handle this situation correctly. Unfortunately had to disable the test case for EclipseLink as the bug with HSQL still exists.
Commits on Apr 26, 2012
Commits on Apr 16, 2012
Commits on Apr 15, 2012
  1. DATAJPA-177 - Throw exception if entity to delete does not exist.

    olivergierke committed Apr 15, 2012
    We now do an exists check inside SimpleJpaRepository.delete(ID id) before actually triggering the deletion to avoid an exception when trying to delete a null value. We throw an EmptyResultDataAccessException to indicate the nonexistent entity now.