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

_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to