[hibernate-commits] [hibernate/hibernate-search] 12afd7: HSEARCH-1583 Collect collectionRoles taken into ac...

GitHub noreply at github.com
Tue Apr 8 14:18:14 EDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-search
  Commit: 12afd7afa2b27dda8328640934b616bb4129c0be
      https://github.com/hibernate/hibernate-search/commit/12afd7afa2b27dda8328640934b616bb4129c0be
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M engine/src/main/java/org/hibernate/search/engine/metadata/impl/AnnotationMetadataProvider.java

  Log Message:
  -----------
  HSEARCH-1583 Collect collectionRoles taken into account in the optimizations to declare them for all subclasses

ORM considers that a field belonging to a @MappedSuperClass is attached to the first @Entity subclass.
Adding every collectionRoles to the subclasses seems to be a nice way to fix this without depending too
much on ORM behavior or JPA API.


  Commit: ceb78981216e0fe7e1d79890eeeddc659de0673f
      https://github.com/hibernate/hibernate-search/commit/ceb78981216e0fe7e1d79890eeeddc659de0673f
  Author: Hardy Ferentschik <hibernate at ferentschik.de>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    A orm/src/test/java/org/hibernate/search/test/engine/optimizations/mappedsuperclasscollection/CollectionOfStringsFieldBridge.java
    A orm/src/test/java/org/hibernate/search/test/engine/optimizations/mappedsuperclasscollection/EntityExtendingMappedSuperclassWithCollectionField.java
    A orm/src/test/java/org/hibernate/search/test/engine/optimizations/mappedsuperclasscollection/InheritedCollectionFieldCollectionUpdateEventTest.java
    A orm/src/test/java/org/hibernate/search/test/engine/optimizations/mappedsuperclasscollection/MappedSuperclassWithCollectionField.java

  Log Message:
  -----------
  HSEARCH-1583 Adding test case


Compare: https://github.com/hibernate/hibernate-search/compare/45ec8f0951e3...ceb78981216e


More information about the hibernate-commits mailing list