users@glassfish.java.net

Re: Vector returned by getSingleResult if query is native

From: <glassfish_at_javadesktop.org>
Date: Tue, 09 Sep 2008 06:51:54 PDT

Hello,

I believe getSingleResult is going to return you a single row from the database. So the Vector represents the row, and it contains only the boolean value. If you used getResultList, it would return a collection for each database row - a Vector containing Vectors for each row returned.

Hope this helps,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

http://forums.java.net/jive/thread.jspa?messageID=298056