persistence@glassfish.java.net

native scalar SQL query and result list

From: Prashant Dighe <Prashant.Dighe_at_Sun.COM>
Date: Fri, 29 May 2009 10:57:07 -0700

Hello,

Consider this native query,
Query query = em.createNativeQuery("select ID, LASTNAME from User");

The query.getResultList() method returns a List of Vectors using TopLink
(JPA 1.0).

Is this TopLink specific or a JPA spec defined behavior that it returns
a List of Vectors?

Thanks,
Prashant

p.s.
In JSR 220, it says this, "Execute a SELECT query and return the query
results as a List." but does not mention the type of objects.
In JSR 317, it says this, "Execute a SELECT query and return the query
results as an untyped List."