Skip to content

Commit 0de9fca

Browse files
foisysandreasprlic
authored andcommitted
/* Deleting objects. */
1 parent 8028036 commit 0de9fca

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

wiki/BioJava:BioJavaXDocs.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2338,9 +2338,8 @@ instances containing the lengths </java>
23382338

23392339
Objects can be removed from the database by calling:
23402340

2341-
`
2342-
session.delete(obj); // where obj is some persistent object
2343-
`
2341+
<java> session.delete(obj); // where obj is some persistent object
2342+
</java>
23442343

23452344
Only when the transaction is committed will they actually be deleted. If
23462345
the transaction is rolled back, the objects will come back to life.

wiki/BioJava:BioJavaXDocs.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,9 +2244,9 @@ List lengths = q.list(); // list will contain Integer instances containing the
22442244

22452245
Objects can be removed from the database by calling:
22462246

2247-
<code>
2247+
<java>
22482248
session.delete(obj); // where obj is some persistent object
2249-
</code>
2249+
</java>
22502250

22512251
Only when the transaction is committed will they actually be deleted. If the transaction is rolled back, the objects will come back to life.
22522252

0 commit comments

Comments
 (0)