[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-679) Entity whose related entity collection is updated causes loading of @ContainedIn entities

Tom Waterhouse (JIRA) noreply at atlassian.com
Thu Feb 3 18:49:05 EST 2011


Entity whose related entity collection is updated causes loading of @ContainedIn entities
-----------------------------------------------------------------------------------------

                 Key: HSEARCH-679
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-679
             Project: Hibernate Search
          Issue Type: Bug
    Affects Versions: 3.2.1, 3.4.0
         Environment: Hibernate 3.6.1-SNAPSHOT/Hibernate Search 3.4.0-SNAPSHOT and Hibernate 3.5.6/Hibernate Search 3.2.1
            Reporter: Tom Waterhouse


This problem seems related to HSEARCH-361.  An entity that references another entity as @ContainedIn is causing the load of entities related to the other entity.  

Using the model below, the update of the collection of D instances in the class C causes the load of related classes B and A.

public class A {
   @Field
   private String name;

   @IndexEmbedded
   private B
}

public class B {
   @ContainedIn
   private A a;

   @IndexEmbedded
   private C c;
}

public class C {

   @ContainedIn
   private Collection<B> b;

   // NOT INDEXED
   private Collection<D> d;
}

public class D {
   public String value;
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list