users@glassfish.java.net

Limiting ammount of Data JPA pulls from Database

From: <glassfish_at_javadesktop.org>
Date: Fri, 09 Nov 2007 10:11:05 PST

Hey all,

I'm setting up JPA to connect to my PostgreSQL database, however when it tries to initialize the JPA objects I run out of heap memory for the java VM.

I was wondering if there was a way to tell the JPA to only pull back a certain number of values from the database? And if so can it be told after startup to change which ones it has in memory?
[Message sent by forum member 'bpeck' (bpeck)]

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