Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Mar 12, 2012

  1. Oliver Gierke

    DATAJPA-169 - Fixed regression in SimpleJpaQuery.

    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.
    olivergierke authored
  2. Oliver Gierke

    Dependency update to Spring Data Commons 1.3.0.BUILD-SNAPSHOT.

    Upgrade to make sure snapshot versions run all against the snapshot version of SD Commons.
    olivergierke authored

Feb 27, 2012

  1. Oliver Gierke

    DATAJPA-151, DATAJPA-167 - Upgrade to Spring 3.1.1.

    Needed to get rid of SPR-8954. Updated build to run against Spring 3.1.1.
    olivergierke authored

Feb 08, 2012

  1. Spring Buildmaster

    Next development version.

    spring-buildmaster authored
  2. Spring Buildmaster

    Release version 1.1.0.RC1

    spring-buildmaster authored
  3. Oliver Gierke

    DATAJPA-164 - Link latest core repository reference documentation.

    olivergierke authored
  4. Oliver Gierke

    DATAJPA-164 - Upgrade to Spring Data Commons 1.3.0.M1.

    olivergierke authored
  5. Oliver Gierke

    DATAJPA-164 - Prepare 1.1.0.RC1.

    olivergierke authored

Feb 03, 2012

  1. Oliver Gierke

    DATAJPA-163 - Updated changelog for 1.0.3.

    olivergierke authored

Feb 02, 2012

  1. Oliver Gierke

    DATACMNS-128 - Implement CrudRepository.findAll(Iterable<ID> ids).

    Implemented said method in SimpleJpaRepository and added test case. Comment that one out for failing persistence providers.
    
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=349477
    https://issues.apache.org/jira/browse/OPENJPA-2018
    olivergierke authored
  2. Oliver Gierke

    DATAJPA-137 - Fixed deleteAll() handling.

    SimpleJpaRepository now deletes entities 1 by 1 for a call to deleteAll() to ensure the cascades get triggered. Introduced deleteAllInBatch() that contains the old behaviour.
    olivergierke authored
  3. Oliver Gierke

    DATAJPA-121 - Corrected query handling if null parameters are provided.

    If a query is executed and null values are provided we now recreate a query with an IS NULL predicate correctly.
    olivergierke authored

Feb 01, 2012

  1. Oliver Gierke

    DATAJPA-9 - Added DateTimeProvider SPI for auditing.

    Extracted the DateTime instance calculation to be used for auditing into a DateTimeProvider callback interface to open it up for customization. AuditingEntityListener can get an instance of it configured. Exposed the property via the auditing namespace. By default a CurrentDateTimeProvider its used that contains the behavior we had so far.
    olivergierke authored
  2. Oliver Gierke

    Consolidated repository declarations to use repo.springsource.org/lib…

    …s-snapshot only.
    olivergierke authored

Jan 31, 2012

  1. Oliver Gierke

    DATAJPA-50 - Introduced support for usage of @IdClass.

    Introduced to support @IdClass to define entity ids. The JpeMetamodelEntityInformation builds instances of the annotated @IdClass in case any of the attributes of the entity declared in the @IdClass has a non-null value.
    olivergierke authored
  2. Oliver Gierke

    DATAJPA-160 - Removed versions from XSD schema references.

    The fixed versions caused issues when used with newer versions of Spring. Removing the version number will cause the one used at runtime to be pulled in.
    olivergierke authored
  3. Oliver Gierke

    DATAJPA-159 - Improved error message if building a PartTreeJpaQuery f…

    …ails.
    olivergierke authored
  4. Oliver Gierke

    DATAJPA-69 - Sample of how to configure repositories with JavaConfig.

    olivergierke authored

Jan 11, 2012

  1. Oliver Gierke

    DATAJPA-142 - Allow using a NamedQuery for count queries in pagination.

    We will now prefer a declared NamedQuery for count queries instead of deriving it from the actual NamedQuery under the following conditions:
    
    - by default a query named ${namedQueryName}.count exists
    - the name of the NamedQuery to be used is defined in @Query(countQueryName = "…")
    
    Note that a potential reconfiguration of the NamedQuery name will be taken into account for the according count query name to assure symmetry. Examples
    
    Page<User> findByLastname(String lastname, Pageable pageable)
    NamedQuery name: User.findByLastname
    Count NamedQuery name: User.findByLastname.count
    
    @Query(name = "Foo.bar")
    Page<User> findByLastname(String lastname, Pageable pageable)
    NamedQuery name: Foo.bar
    Count NamedQuery name: Foo.bar.count
    
    @Query(countName = "Foo.bar.count")
    Page<User> findByLastname(String lastname, Pageable pageable)
    NamedQuery name: User.findByLastname
    Count NamedQuery name: Foo.bar.count
    
    @Query(name = "Foo.bar", countName = "something")
    Page<User> findByLastname(String lastname, Pageable pageable)
    NamedQuery name: Foo.bar
    Count NamedQuery name: something
    olivergierke authored
  2. Oliver Gierke

    DATAJPA-138 - Make MergingPesistenceUnitManager work again.

    Override isPersistenceUnitOverrideAllowed() newly introduced in Spring 3.1.1 to indicate we can deal with persistence units of the same name. For Spring 3.0.x versions the implementation was not broken.
    olivergierke authored
  3. Oliver Gierke

    DATAJPA-150 - Upgraded persistence provider dependencies.

    Upgraded Hibernate to 3.6.9, EclipseLink to 2.3.2 as well as OpenJpa 2.1.1.
    olivergierke authored
  4. Oliver Gierke

    DATAJPA-145 - Upgraded AspectJ dependency to 1.6.12.

    olivergierke authored

Dec 22, 2011

  1. Oliver Gierke

    DATAJPA-140 - Upgrade to Querydsl 2.3.0.

    olivergierke authored

Dec 19, 2011

  1. Dirk Mahler

    DATAJPA-136 - Initial draft of CDI integration.

    Implemented CDI integration based on the Spring Data Commons code introduced in DATACMNS-110.
    DirkMahler authored olivergierke committed

Dec 15, 2011

  1. Oliver Gierke

    DATAJPA-141 - JpaMetamodelEntityInformation now works with MappedSupe…

    …rclasses as well.
    
    We now call Metamodel.managedClass(…) instead of Metamodel.entityType(…) to be able to detect ids in @MappedSuperclass types as well. Unfortunately this currently still fails with Hibernate as theit Metamodel implementation only considers entities. See [0] for further details.
    
    [0] https://hibernate.onjira.com/browse/HHH-6896
    olivergierke authored

Dec 09, 2011

  1. Oliver Gierke

    DATAJPA-135 - Improved extensibility of QueryDslRepositorySupport.

    Moved @PersistenceContext annotation to the setter method to make it overridable and thus re-configurable. Introduced protected getEntityManager() method to allow subclasses having access to the EntityManager.
    olivergierke authored

Dec 06, 2011

  1. Oliver Gierke

    DATAJPA-133 - Updated changelog.

    olivergierke authored
  2. Oliver Gierke

    DATAJPA-73 - Added id to locking section of reference documentation.

    olivergierke authored
  3. Oliver Gierke

    DATAJPA-73 - Added support for locking.

    Repository query methods can now be equipped with a @Lock annotation that carries the LockModeType to be used when executing the query. Beyond that, CRUD methods can be redeclared to carry lock metadata as well.
    
    interface UserRepository extends Repository<User, Long> {
      // CRUD method redeclaration
      @Lock(LockModeType.READ)
      List<User> findAll();
    
      // Query method
      @Lock(LockModeType.READ)
      List<User> findByLastname(String lastname);
    }
    olivergierke authored

Dec 05, 2011

  1. Tomasz Nurkiewicz

    DATAJPA-124 - Optimized pagination execution.

    For pagination we already need to trigger a count query to find out the total number of pages available. Now if there are less elements available than the offset of the current page points to we don't need to trigger the actual content reading query at all. E.g. if there's only 20 elements in the database and we request page 3 by a page size of 10 we already know that there won't be any elements found.
    
    Implemented that optimization for general CRUD pagination as well as pagination in query methods.
    nurkiewicz authored olivergierke committed
  2. Oliver Gierke

    DATAJPA-123, DATAJPA-122 - Updated reference documentation.

    Added documentation of ClasspathScanningPersistenceUnitPostProcessor to reference documentation.
    olivergierke authored
  3. Oliver Gierke

    DATAJPA-132 - Implemented handling of True and False keywords on quer…

    …y creation.
    
    Query derivation mechanism now supports True and False as keywords in finder methods:
    
    class User {
      boolean active;
    }
    
    interface UserRepository<User, Long> {
      List<User> findByActiveTrue() ;
    }
    olivergierke authored

Dec 03, 2011

  1. Oliver Gierke

    DATAJPA-123 - Added classpath-scanning PersistenceUnitPostProcessor.

    Added ClasspathScanningPersistenceUnitPostProcessor that will scan the configured base package for classes annotated with @Entity or @MappedSuperclass and add them to the PersistenceUnit handled.
    
    Beyond that it will scan for JPA XML mapping files if an optional mapping file name pattern is configured on the PUPP instance.
    olivergierke authored
  2. Oliver Gierke

    DATAJPA-129 - Allow definition of NamedQuery name to be used in @Query.

    @Query now has a name attribute that allows defining the NamedQuery name to be used to override the convention based ${domainClass}.${finderMethodName}.
    olivergierke authored

Dec 02, 2011

  1. Oliver Gierke

    DATAJPA-117 - Added nativeQuery flag to @Query.

    @Query can now be used to execute native queries by setting the nativeQuery flag of the annotation to true. Polished JavaDoc of the @Query annotation. Upgraded EclipseLink dependency to 2.3.1 as we stumble over a NullPointerException otherwise which is fixed in the current one.
    olivergierke authored
Something went wrong with that request. Please try again.