-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate search with update data
PostPosted: Thu Sep 11, 2008 2:09 am 
Newbie

Joined: Sat Jul 01, 2006 9:38 pm
Posts: 17
Hi.
I have a problem with updating datas.

Code:
public class Observation{
@IndexEmbeddable
private Patient patient;
}

@Embbeded
public class Patient{

}


When I index Observation, Patient is also indexed, that is alright.
But when I update the Patient, there is no update in this patient's index.
What I want ask is that, doesn't Hibernate Search update index according to @DocumentId field?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2008 6:17 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

if you want to have changes to Patient entities update the index as well, then you have to make the association bidirectional and use @ContainedIn. See online doc: http://www.hibernate.org/hib_docs/search/reference/en/html_single/#d0e1322.

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2008 12:01 am 
Newbie

Joined: Sat Jul 01, 2006 9:38 pm
Posts: 17
Hi, Hardy
Thank you for the reply.

--suyejun


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.