Re: [hibernate-dev] HSEARCH-189 & concurrency

2008-07-05 Thread Emmanuel Bernard
On Jul 4, 2008, at 21:06, Sanne Grinovero wrote: Yes what you formalized is exactly what I meant; there's an additional point in the "piggyback" strategy, which is to actually use some volatile read (or any other memorybarrier) which you couldn't avoid anyway, to avoid the cost of reading a

[hibernate-dev] Re: Search initialization: remove WeakHashMap?

2008-07-05 Thread Emmanuel Bernard
Nope this is unrelated. You could have n instances of the same event listener class and this code protect from this. -- Emmanuel Bernard http://in.relation.to/Bloggers/Emmanuel | http://blog.emmanuelbernard.com | http://twitter.com/emmanuelbernard Hibernate Search in Action (http://is.gd/Dl1

[hibernate-dev] Hibernate join problem

2008-07-05 Thread ManiKanta G
Hi, I have two tables (drug_master, cds_drugstore) with cds_master.drug_id reference to drug_master.id. I want to fetch all the drugids, drug_name, sum of avaialble drugs (if avaialable, or else null). I have this native MySql query, which is working fine. but I am unable to port this in t