Permalink
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
  1. DATAJPA-226 - Working around ambiguities in the JPA spec.

    olivergierke committed Jul 18, 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.
    
    See http://java.net/projects/jpa-spec/lists/jsr338-experts/archive/2012-07/message/17
Commits on Jun 6, 2012
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 committed with olivergierke 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 committed with olivergierke 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
    …ger.
    
    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.