-->
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: many-to-many index
PostPosted: Mon Sep 15, 2008 11:36 pm 
Newbie

Joined: Sat Jul 01, 2006 9:38 pm
Posts: 17
Suppose following case:

Code:
Act -- Document nTOn
Act -- ActDocument nTO1
Document -- ActDocument nTO1

ReportDocument extends Document{
@Field(index=Store.YES)
private String content;
}

And persistence is like:

ActDocument ad = new ActDocument();
ad.setAct(act);
ad.setDocument(document);
dao.save(ad);


I want to have indexes contains reportDocument.content, how can I do?
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 8:37 am 
Hibernate Team
Hibernate Team

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

i really don't understand your description, but generally you use @IndexedEmbedded to index associated objects. Check the documentation for that.

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 10:09 am 
Newbie

Joined: Sat Jul 01, 2006 9:38 pm
Posts: 17
hardy.ferentschik wrote:
Hi,

i really don't understand your description, but generally you use @IndexedEmbedded to index associated objects. Check the documentation for that.

--Hardy


Hi, Hardy.
Thank you for the reply.
I have made my problem solved using @IndexEmbedded(targetElement=ReportDocument.class).
In fact, my problem is that saving parent class doesn't index sub class's fields, and it was solved.
Thank you very much.

--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.