Skip to content

Commit b2ed1f3

Browse files
foisysandreasprlic
authored andcommitted
/* Opening and closing sessions. */
1 parent 1459dda commit b2ed1f3

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

wiki/BioJava:BioJavaXDocs.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,9 +2115,7 @@ BioJavaX RichObjectFactory.connectToBioSQL(session); </java>
21152115

21162116
To close the Hibernate session:
21172117

2118-
`
2119-
session.close();
2120-
`
2118+
<java> session.close(); </java>
21212119

21222120
Note that the line that loads the Hibernate configuration only needs to
21232121
be done once, regardless of how many sessions you open, as long as you

wiki/BioJava:BioJavaXDocs.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,9 +2069,9 @@ RichObjectFactory.connectToBioSQL(session);
20692069

20702070
To close the Hibernate session:
20712071

2072-
<code>
2072+
<java>
20732073
session.close();
2074-
</code>
2074+
</java>
20752075

20762076
Note that the line that loads the Hibernate configuration only needs to be done once, regardless of how many sessions you open, as long as you keep a reference to your sessionFactory somewhere handy.
20772077

0 commit comments

Comments
 (0)