openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cedric Hurst <cedric.hu...@gmail.com>
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
EntityManager:

17:44:27,171 WARN  [MetaData] Found duplicate query "customerByName" in
"class
com.gmail.at.cedrichurst.complexDataTypeWSExampleEJB.domain.Customer". 
Ignoring.

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:

http://svn2.assembla.com/svn/d5Z24gWSer3lvHabIlDkbG/ComplexDataTypeWSExampleEJB/ejbModule/com/gmail/at/cedrichurst/complexDataTypeWSExampleEJB/domain/Customer.java

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

http://svn2.assembla.com/svn/d5Z24gWSer3lvHabIlDkbG/ComplexDataTypeWSExampleEJB/ejbModule/META-INF/persistence.xml

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: http://www.nabble.com/%22Found-duplicate-query%22-annoyance-tp15114554p15114554.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message