Switch branches/tags
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.
  2. DATAJPA-186, DATAJPA-187 - Corrected typos in NamedQuery log output.

    manish-in-java authored and olivergierke committed Apr 6, 2012
    Change log level for one of the log messages in NamedQuery from INFO to WARN. This was done to provide more forceful information to the developer that sorting applied with named queries will be ignored.
Commits on Apr 13, 2012
Commits on Apr 12, 2012
  1. DATAJPA-189, DATAJPA-190 - Improvements to MergingPersistenceUnitMana…

    olivergierke committed Apr 12, 2012
    MergingPersistenceUnitManager now also merges mapping file locations. We also make sure now that the persistence unit root URL does not get added twice accidentally as some persistence providers refuse to work then.
  2. DATAJPA-180 - Added support for StartingWith, EndingWith, Containing …

    olivergierke committed Apr 11, 2012
    …to query creator.
    The query derivation mechanism now supports StartingWith, EndingWith and Containing as keywords using the Criteria API's like predicate and massaging the given parameters accordingly. Refactored parameter binding  for CriteriaQuery instances to encapsulate the knowledge of how to massage a parameter based on the type.
Commits on Apr 11, 2012
  1. DATAJPA-185 - Sanity check named parameter names in JpaQueryMethod.

    olivergierke committed Apr 11, 2012
    To avoid the query execution to fail due to typos in the named parameter mapping, JpaQueryMethod now checks the named parameters potentially annotated using @Param to be present in the annotated query.
  2. DATAJPA-181 - Improve JPAQuery instantiation for Querydsl support.

    olivergierke committed Apr 11, 2012
    Upgraded to Querydsl 2.3.3. We now choose the appropriate JPQLTemplate depending on the used persistence provider inside QueryDslRepositorySupport as well as QueryDslJpaRepository.
Commits on Apr 10, 2012
  1. DATAJPA-188 - Updated query keyword reference.

    olivergierke committed Apr 10, 2012
    Included general keyword reference from Spring Data Commons. Updated keyword samples of supported ones.
Commits on Mar 12, 2012
  1. DATAJPA-169 - Fixed regression in SimpleJpaQuery.

    olivergierke committed Mar 12, 2012
    When using a projection to a collection property in a manually defined query we must not set the domain class type when creating the query:
    interface UserRepository implements Repository<User, Long> {
      @Query("select u.colleagues from User u where u = ?1")
      List<User> findColleguesFor(User user);
    We now must not call em.createQuery(queryString, User.class) as we were before as this causes some persistence providers (tested with Hibernate) to reject the query type. Thus we now simply create an untyped query as we don't need the typing here. Unfortunately we cannot activate the test case currently as OpenJPA does not support using projections on a collection property and breaks the bootstrap process of the integration test.
  2. Dependency update to Spring Data Commons 1.3.0.BUILD-SNAPSHOT.

    olivergierke committed Mar 12, 2012
    Upgrade to make sure snapshot versions run all against the snapshot version of SD Commons.
Commits on Feb 27, 2012
  1. DATAJPA-151, DATAJPA-167 - Upgrade to Spring 3.1.1.

    olivergierke committed Jan 11, 2012
    Needed to get rid of SPR-8954. Updated build to run against Spring 3.1.1.
Commits on Feb 8, 2012