[base] Querying annotations

2010-01-04 Thread Bob MacCallum
Hi Olivier, This is how we search Samples for a particular annotation. I'm not sure if it will compile because I've simplified it for you. ItemQuerynet.sf.basedb.core.Sample sampleQuery = net.sf.basedb.core.Sample.getQuery(); sampleQuery.include(Include.SHARED);

Re: [base] Querying annotations

2010-01-04 Thread Olivier Lefevre
Thanks. Between that and the other thread I am getting I should be able to work out something. What about AnnotationSet.getQuery(), though: can't you search that and then use getItem() to go back to the item? -- O.L.