Browse Source

tweak example

git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@843 f203690c-595d-4dc9-a70b-905162fa7fd2
tags/jackcess-2.0.3
James Ahlborn 10 years ago
parent
commit
53be963436
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/site/xdoc/cookbook.xml

+ 2
- 2
src/site/xdoc/cookbook.xml View File

@@ -251,12 +251,12 @@
key and enable speedier lookups on the "Name" column.
</p>
<source>
// new TableBuilder(...
// ... new TableBuilder( ...
.addIndex(new IndexBuilder(IndexBuilder.PRIMARY_KEY_NAME)
.addColumns("ID").setPrimaryKey())
.addIndex(new IndexBuilder("NameIndex")
.addColumns("Name"))
// .toTable(...
// ... .toTable( ...
</source>
<p>
Don't forget to close the Database when you are finished building it

Loading…
Cancel
Save