-->
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: auto listener doesnt work for mixed annotation and .hbm.xml
PostPosted: Tue Apr 20, 2010 2:33 pm 
Beginner
Beginner

Joined: Fri Jun 29, 2007 2:19 pm
Posts: 26
Location: Fremont, CA
We have kind of an odd environment where our domain model configuration is a mix of annotation and .hbm.xml files. What I noticed is that for entities having .hbm.xml configuration, auto indexing didnt work even with added post update listeners. I have two questions
1. Should we need listeners in such mixed environment?
2. What configuration might be missing which is causing indexing to not kick off at commit

current work around is to do it manually, but that makes it non-transactional. We are using Hibernate Search 3.1.1GA

_________________
-shailesh


Top
 Profile  
 
 Post subject: Re: auto listener doesnt work for mixed annotation and .hbm.xml
PostPosted: Tue Apr 20, 2010 3:29 pm 
Beginner
Beginner

Joined: Fri Jun 29, 2007 2:19 pm
Posts: 26
Location: Fremont, CA
so, I think I know reason now. Its similar to viewtopic.php?f=9&t=996636&start=0
My relationship is as follows:

Obj A --OneToOne-> Obj B -ManyToOne-> Obj C

I want to search for object A and object B, based on properties of object C. When object C updates, there is no cascade to A and B, so I ll have to index related Obj A and Obj B manually. I guess the only piece remaining is to configure custom listener that can be called during commit.

_________________
-shailesh


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.