openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cedric Hurst <>
Subject "Found duplicate query" annoyance
Date Sun, 27 Jan 2008 00:28:27 GMT

Anytime I define a @NamedQuery in an @Entity and reference it in a
PersistenceContext, I get this warning when I instantiate a new

17:44:27,171 WARN  [MetaData] Found duplicate query "customerByName" in

I'm using OpenJPA inside Apache Geronimo, so I figured this may have
something to do with runtime vs container management of the EntityManager.

Here's my Entity class code:

... and my persistence.xml can be found here:

This isn't a critical issue, but I've always wondered if there's anything I
should be doing to get rid of it.
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message