[#1357] a few suggested edits to the tutorial
This commit is contained in:
parent
da579fae96
commit
569ce789a2
@ -270,7 +270,7 @@ Let's add a simple query:
|
||||
</p>
|
||||
<pre class="prettyprint lang-java">
|
||||
GuestbookFactory create = new GuestbookFactory(conn);
|
||||
Result<?> result = create.select().from(POSTS).fetch();
|
||||
Result<Record> result = create.select().from(POSTS).fetch();
|
||||
</pre>
|
||||
<p>
|
||||
First get an instance of <code>GuestbookFactory</code> so we can write a simple
|
||||
@ -337,7 +337,7 @@ public class Main {
|
||||
conn = DriverManager.getConnection(url, userName, password);
|
||||
|
||||
GuestbookFactory create = new GuestbookFactory(conn);
|
||||
Result<?> result = create.select().from(POSTS).fetch();
|
||||
Result<Record> result = create.select().from(POSTS).fetch();
|
||||
|
||||
for (Record r : result) {
|
||||
Long id = r.getValue(POSTS.ID);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user