On Aug 12, 2009, at 9:55 AM, Felipe Gaścho wrote:
> here it is the code from the facade:
>
>
> public Collection<T> readAll(int offset, int chunk)
> throws IllegalStateException, IllegalArgumentException {
> Query query;
> query = manager.createQuery("select e from "
> + entityClass.getSimpleName() + " e");
> query.setFirstResult(offset);
> query.setMaxResults(chunk);
> return doQuery(query);
> }
>
>
> so, where this Vector comes from ???
>
What does doQuery do?
> * manager = EntityManager
>
> I am using Toplink from Glassfish........
>
Is Collection returned from the query to the JPA layer? If so guess
Toplink uses Vector as the implementation of Collection.
Paul.