Skip to content

Commit cecff2b

Browse files
foisysandreasprlic
authored andcommitted
/* BioEntryDB and RichSequenceDB convenience wrappers */
1 parent 0cd7ec2 commit cecff2b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

_wikis/BioJava:BioJavaXDocs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,8 +2442,8 @@ sequence is added, and a third is deleted:
24422442
establish a session RichObjectFactory.connectToBioSQL(sess); // bind
24432443
BioJavaX to the Hibernate session
24442444

2445-
RichSequenceDB db = new BioSQLRichSequenceDB(sess); // create the
2446-
RichSequenceDB wrapper around the Hibernate session
2445+
// create the RichSequenceDB wrapper around the Hibernate session
2446+
RichSequenceDB db = new BioSQLRichSequenceDB(sess);
24472447

24482448
RichSequence seq1 = db.getRichSequence("joe"); // load the sequence
24492449
where name='joe'
@@ -2464,8 +2464,8 @@ JavaDocs for the Session object in Hibernate):
24642464
establish a session RichObjectFactory.connectToBioSQL(sess); // bind
24652465
BioJavaX to the Hibernate session
24662466

2467-
RichSequenceDB db = new BioSQLRichSequenceDB(sess); // create the
2468-
RichSequenceDB wrapper around the Hibernate session
2467+
// create the RichSequenceDB wrapper around the Hibernate session
2468+
RichSequenceDB db = new BioSQLRichSequenceDB(sess);
24692469

24702470
Transaction tx; try {
24712471

_wikis/BioJava:BioJavaXDocs.mediawiki

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,8 @@ The wrappers allow sequences to be read from, added to and deleted from the data
23242324
Session sess = ...; // connect to BioSQL using Hibernate and establish a session
23252325
RichObjectFactory.connectToBioSQL(sess); // bind BioJavaX to the Hibernate session
23262326

2327-
RichSequenceDB db = new BioSQLRichSequenceDB(sess); // create the RichSequenceDB wrapper around the Hibernate session
2327+
// create the RichSequenceDB wrapper around the Hibernate session
2328+
RichSequenceDB db = new BioSQLRichSequenceDB(sess);
23282329

23292330
RichSequence seq1 = db.getRichSequence("joe"); // load the sequence where name='joe'
23302331

@@ -2342,7 +2343,8 @@ The code above is non-transactional, but it can be made to be transactional by d
23422343
Session sess = ...; // connect to BioSQL using Hibernate and establish a session
23432344
RichObjectFactory.connectToBioSQL(sess); // bind BioJavaX to the Hibernate session
23442345

2345-
RichSequenceDB db = new BioSQLRichSequenceDB(sess); // create the RichSequenceDB wrapper around the Hibernate session
2346+
// create the RichSequenceDB wrapper around the Hibernate session
2347+
RichSequenceDB db = new BioSQLRichSequenceDB(sess);
23462348

23472349
Transaction tx;
23482350
try {

0 commit comments

Comments
 (0)