-->
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.  [ 4 posts ] 
Author Message
 Post subject: Is Search's manual purge compatible with @ContainedIn?
PostPosted: Mon Feb 04, 2013 3:58 pm 
Newbie

Joined: Mon Feb 04, 2013 10:57 am
Posts: 2
Is Hibernate Search's FullTextSession.purge method compatible with @ContainedIn?

I have a scenario where I would like to remove an index without removing the underlying database entity. I wrote a test for this scenario but it’s blowing up on an entity property that I’ve annotated with @ContainedIn. I suspect this combination (purge with @ContainedIn) is not supported. Can someone tell me definitively if this is a supported operation or not?

Thanks,
John


Top
 Profile  
 
 Post subject: Re: Is Search's manual purge compatible with @ContainedIn?
PostPosted: Mon Feb 04, 2013 4:51 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
I would expect this to work, although it's not entirely clear to me what you're doing. Care to share the failing scenario as a unit test?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Is Search's manual purge compatible with @ContainedIn?
PostPosted: Tue Feb 05, 2013 7:38 pm 
Newbie

Joined: Mon Feb 04, 2013 10:57 am
Posts: 2
The junit is about ~10mb (due to third party jars). What's the preferred way of supplying junits? I don't see anyway to attach it to this thread.

Thanks


Top
 Profile  
 
 Post subject: Re: Is Search's manual purge compatible with @ContainedIn?
PostPosted: Tue Feb 05, 2013 7:43 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
the preferred way is to have tests at the bare minimum, as patches to apply on the source of the project. Ideally, as github pull requests.

A good compromise is to share a project which uses Maven dependency definitions so you don't have to include fatty jars.

We had to disable file upload to this forum because of spam activity, you could create an issue on JIRA describing your problem and attach the file to the JIRA ticket:
https://hibernate.onjira.com/browse/HSEARCH

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.