users@glassfish.java.net

TopLink: em.getReference downloads data from database

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Sun, 24 Jun 2007 22:54:39 +0200

Hi there,
I have problem with TopLink, because em.getReference is fetching data
from database the same way as em.find does. But sometimes, there is no
need to fetch entity, only reference is important, for example, to use
it as a foreign key in some query.
Is it a bug? Why em.getReference acts the same way as em.find?