users@glassfish.java.net

JPA: how to fetch first 10 rows?

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 Jul 2008 07:47:27 PDT

If I use JDBC with mysql, I can just write a statement like this this select a from abc a limit 0,10
Does anyone how to do the same thing with JPA query language? thanks in advance.

Bo
[Message sent by forum member 'bobxu' (bobxu)]

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