[Biojava-l] BioJavaX docbook minor corrections

Felix Dreher dreher at mpiib-berlin.mpg.de
Fri Feb 24 07:53:45 EST 2006


Hello,

just two suggestions/corrections about the BioJavaX-docbook.
In the section "Configuring your application to use Hibernate and BioSQL", complete example,
I found two errors (or at least these parts don't work in my test-app).


1)
// print out all the sequences in the namespace
        Query sq = session.createQuery("from BioEntry where namespace=?",ns);

--> should probably be:
       Query sq = session.createQuery("from BioEntry where namespace=:nsp");
       sq.setParameter("nsp",ns);



2)
// if the sequence is called bloggs, change its version to 99
       be.setVersion(99);

--> can't use the method setVersion(int) --> but e.g. setDescription("XYZ");



Regards,
Felix



-- 
Felix Dreher
Max-Planck-Institute for Infection Biology
Campus Charité Mitte
Department of Immunology
Mailing address: Schumannstraße 21/22
Visitors: Virchowweg 12
10117 Berlin
Germany
Tel.: +49 (0)30 28460-254 / -494
Mobile: +49 (0)163 7542426



More information about the Biojava-l mailing list