Skip to content
Commits on Feb 12, 2016
  1. @olivergierke
  2. @olivergierke
  3. @olivergierke
  4. @olivergierke
  5. @olivergierke
Commits on Feb 11, 2016
  1. @olivergierke
Commits on Feb 10, 2016
  1. @olivergierke

    DATAJPA-858 - Polishing.

    olivergierke committed
    Removed obsolete method from JpaQueryCreator. Tweaked ticket references in sample repository.
  2. @olivergierke

    DATAJPA-858 - Fixed collection contains handling for nested path trav…

    olivergierke committed
    …ersals.
    
    Previously the first property was checked for being a collection to trigger collection contains handling. This is wrong for nested property traversals as they might end up in a String for which a like binding has to be applied then.
    
    We're now inspecting the leaf property for being a collection to trigger that special binding.
Commits on Feb 2, 2016
  1. @olivergierke

    DATAJPA-854 - Added code of conduct.

    olivergierke committed
    Moved to Asciidoctor for the CONTRIBUTING file.
Commits on Jan 28, 2016
  1. @olivergierke
Commits on Jan 21, 2016
  1. @olivergierke

    DATAJPA-850 - Polishing.

    olivergierke committed
    Original pull request: #163.
  2. @wimdeblauwe @olivergierke

    DATAJPA-850 - Added documentation on how to use the @EntityListeners …

    wimdeblauwe committed with olivergierke
    …annotation to enable auditing.
    
    Added instructions to the reference documentation on how to register the AuditingEntityListener using JPA's @EntityListeners annotation.
    
    Original pull request: #163.
Commits on Jan 19, 2016
  1. @is-alex @olivergierke

    DATAJPA-849 - Fixed test case in sample of README.

    is-alex committed with olivergierke
    Original pull request: #162.
  2. @olivergierke

    DATAJPA-813 - Advanced integration test for DefaultJpaContext.

    olivergierke committed
    Added an integration test that shows how to refer to JpaContext from an ApplicationComponent.
Commits on Jan 15, 2016
  1. @olivergierke

    DATAJPA-848 - Fixed AbstractPersistable's equals(…) for proxies.

    olivergierke committed
    AbstractPersistable.equals(…) now consides the target object's user class before comparing types.
Commits on Jan 13, 2016
  1. @olivergierke
Commits on Jan 11, 2016
  1. @olivergierke

    DATAJPA-845 - Avoid unnecessary lookups of PersistenceProvider.

    olivergierke committed
    To prevent multiple attempts of class loading down stream for multiple lookup calls to fromEntityManager(…) or fromMetamodel(…). We now avoid the repeated lookups of a PersistenceProvider instance by reusing a canonical one created in CreateQueryLookupStrategy.
    
    Instead of looking up the PersistenceProvider for every entity again, we now look it up once in the JpaMappingContext for reuse on all JpaPersistentEntity instances.
    
    Original pull request: #161.
Commits on Dec 18, 2015
  1. @olivergierke @christophstrobl
Commits on Dec 17, 2015
  1. @olivergierke

    DATAJPA-839 - Fixed thread-bound lookups of CrudMethodMetadata.

    olivergierke committed
    CrudMethodMetadata exposed by the CrudMethodMetadataPostProcessor previously used an AbstractLazyCreationTargetSource to lookup the thread-bound instance. That instance however is cached and never released so that all subsequent calls to it returned the same (and in most cases wrong) instance.
    
    We're now implementing TargetSource directly to make sure we obtain a fresh instance on every access of the CrudMethodMetadata proxy.
Commits on Dec 14, 2015
  1. @olivergierke

    DATAJPA-804 - Support for projections on query methods.

    olivergierke committed
    Based on the work for DATACMNS-89 we now use the metadata exposed by ResourceProcessor to optimize queries that are to be projected on the query execution level.
    
    If a projection interface is used that's not using any dynamic expression, we now explicitly query for a JPA Tuple consisting of all properties required for the projection interface. The same applies to DTOs that use an @PersistenceConstructor.
    
    Related tickets: DATACMNS-89.
Commits on Dec 12, 2015
  1. @olivergierke

    DATAJPA-834 - Polishing.

    olivergierke committed
    Updated copyright date range and added author.
    
    Original pull request: #159.
  2. @Nugs @olivergierke

    DATAJPA-834 - Use less common bean name for EntityManagerBeanDefiniti…

    Nugs committed with olivergierke
    …onRegistrarPostProcessor.
    
    Replacing bean name "foo" with more meaningful value injected via constant as a bean probably shouldn't have "foo" as its name when everything else has meaningful values defined in constants. Renamed bean and extracted constant alongside others referenced within the file.
    
    Original pull request: #159.
  3. @kamilszymanski @olivergierke

    DATAJPA-833 - Added missing log message's placeholder in ClasspathSca…

    kamilszymanski committed with olivergierke
    …nningPersistenceUnitPostProcessor.
    
    Original pull request: #158.
Commits on Dec 9, 2015
  1. @olivergierke
Commits on Dec 2, 2015
  1. @olivergierke

    DATAJPA-829 - Support for Contains keyword on collection expressions.

    olivergierke committed
    The if a collection expression is concluded with a Contains keyword, we now translate that into a "member of"-expression on the criteria query. This allows to check whether a collection property contains a singular value.
    
    List<User> findByRolesContaining(Role role);
    
    This will return all users that have the given role.
  2. @olivergierke

    DATAJPA-830 - NotContaining now gets applied correctly.

    olivergierke committed
    We now handle the NotContaining keyword correctly for String property expressions.
Commits on Nov 26, 2015
  1. @olivergierke

    DATAJPA-826 - Added Jacoco to test executions explicitly.

    olivergierke committed
    To make sure the coverage data is collected for all test executions, we now explicitly add the Jacoco Java agent to the test executions.
    
    Added Jacoco plugin explicitly to make sure the agent can be resolved even if the build is not run in sonarcube profile.
Commits on Nov 17, 2015
  1. @olivergierke
Commits on Nov 16, 2015
  1. @olivergierke @christophstrobl
Commits on Nov 10, 2015
  1. @olivergierke
Commits on Nov 6, 2015
  1. @olivergierke

    DATAJPA-820 - Try to discover more version properties on superclasses.

    olivergierke committed
    Tweaked the lookup of a version property on a mapped superclass. Hibernate doesn't expose itself as being very supportive in that: on versions below 4.3 the method primarily intended to look it up (IdentifiableType.getVersion(…)) expects you to hand in exactly the type of the property you're trying to find in the first place. Awesome, not.
    
    If this fails, we now explicitly traverse the singular attributes and recursively traverse super types. Unfortunately, on the Hibernate version broken as defined above, the check for attribute.isVersion() fails even for the version property as the implementation holds all singular attributes with one for the version property which is not marked as such.
    
    tl;dr; - everyone trying to use @Version on a mapped superclass and a primitive identifier in an entity on Hibernate 4.3 will still have to implement Persistable to make sure EntityManager.persist(…) is used for new entities.
Commits on Nov 5, 2015
  1. @olivergierke

    DATAJPA-871 - CrudMethodMetadataPostProcessor now uses the bean Class…

    olivergierke committed
    …Loader.
    
    The thread-local proxy for the CrudMethodMetadata is now created using the bean ClassLoader, which the repository factory gets set from the container.
    
    Renamed the property for the post processor and its lookup method.
Commits on Nov 2, 2015
  1. @olivergierke

    DATAJPA-817 - Upgraded to EclipseLink 2.6.1.

    olivergierke committed
    Added build profiles for next bugfix version as well as next minor version of EclipseLink.
Commits on Oct 21, 2015
  1. @olivergierke

    DATAJPA-815 - Fixed application of sorting in combination with join a…

    olivergierke committed
    …liases.
    
    The application of sort expressions is guarded by the detection of join aliases to potentially prefix the sort expression with the default alias. In case a raw property reference to sort by started with a join alias the property name wasn't prefixed. We now explicitly check for a start with the alias followed by a dot.
Commits on Oct 14, 2015
  1. @olivergierke @christophstrobl
Something went wrong with that request. Please try again.