Skip to content
Success

Changes

Summary

  1. Always resolve entity type to the most specific available. (commit: c783dcf) (details)
  2. Use instantiable Java type in EntityConstructor to create entity instance. (commit: a5334b1) (details)
Commit c783dcf672541e5ac8d4d6f027f2f91b58ace660 by Martin Ledvinka
Always resolve entity type to the most specific available.

This changes entity type resolution behavior but should not break applications (Liskov principle). It is more consistent with JPA and common sense.
(commit: c783dcf)
The file was modifiedjopa-impl/src/main/java/cz/cvut/kbss/jopa/oom/metamodel/PolymorphicEntityTypeResolver.java (diff)
The file was modifiedjopa-integration-tests/src/main/java/cz/cvut/kbss/jopa/test/query/runner/PolymorphicSelectQueryRunner.java (diff)
The file was modifiedjopa-impl/src/test/java/cz/cvut/kbss/jopa/oom/metamodel/PolymorphicEntityTypeResolverTest.java (diff)
The file was modifiedjopa-integration-tests/src/main/java/cz/cvut/kbss/jopa/test/runner/RetrieveOperationsWithInheritanceRunner.java (diff)
Commit a5334b16d97d900b8d3ddcbb13ddb4dfec04f8ee by Martin Ledvinka
Use instantiable Java type in EntityConstructor to create entity instance.

Relevant for scenarios when generated change-tracking subclasses are used by JOPA.
(commit: a5334b1)
The file was modifiedjopa-impl/src/main/java/cz/cvut/kbss/jopa/sessions/cache/LruCacheManager.java (diff)
The file was modifiedjopa-impl/src/main/java/cz/cvut/kbss/jopa/sessions/ReadOnlyUnitOfWork.java (diff)
The file was modifiedjopa-impl/src/test/java/cz/cvut/kbss/jopa/sessions/ReadOnlyUnitOfWorkTest.java (diff)
The file was modifiedjopa-impl/src/main/java/cz/cvut/kbss/jopa/oom/EntityConstructor.java (diff)
The file was modifiedjopa-impl/src/main/java/cz/cvut/kbss/jopa/sessions/cache/CacheManager.java (diff)
The file was modifiedjopa-impl/src/main/java/cz/cvut/kbss/jopa/sessions/cache/EntityCache.java (diff)
The file was modifiedjopa-integration-tests/src/test/java/cz/cvut/kbss/jopa/test/integration/ReadOnlyEntityManagerCacheTest.java (diff)