-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: HSearch: Problem with associated Objects
PostPosted: Fri Apr 27, 2007 7:18 am 
Newbie

Joined: Fri Apr 20, 2007 10:31 am
Posts: 10
I´ve a problem with generating an Index with a chain of embedded Objects.

It ist no Problem, if there is only One Associated Class associated to the class that is indexed but the problem appears, if there is a chain..

It lloks like this:



Code:
@Indexed
public class TEvent implements java.io.Serializable {

   // Fields   
   @DocumentId
   private Long eventId;

   @IndexedEmbedded
   private TLocation TLocation;
...
}


public class TLocation implements java.io.Serializable {

   @DocumentId
   private Long locationId;

   @IndexedEmbedded  //The next one that should be in the index
   private TCountry TCountry;

   @Field(index= Index.TOKENIZED)
   private String addressRow1;

   @Field(index= Index.TOKENIZED)
   private String addressRow2;

   @ContainedIn
   private Set<TEvent> TEvents = new HashSet<TEvent>(0);

...

}



public class TCountry implements java.io.Serializable {

   // Fields   

   @DocumentId
   private String iso2;

   @Field(index= Index.TOKENIZED)
   private String name;

   @ContainedIn
   private Set<TLocation> TLocations = new HashSet<TLocation>(0);

...

}



The field TLocation.addressRow1 and all other Fields in TEvent appear in the index.
But I thought to get TLocation.TCountry.name in the index to.
But I cant manage :-(

What am I doing wrong?

_________________
Meine Webseite (German):

Germanische Mythologie


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 01, 2007 3:40 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
weird I have a unit test case for that. check the test suite o.h.s.t.embedded
You might be able to see a difference and generate a failing testcase from it or find the issue on your side

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.