openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: [jira] Assigned: (OPENJPA-819) NPE when no metadata is defined for a persistent class
Date Tue, 16 Dec 2008 16:07:51 GMT

Hi,
  Thank you for your contribution.
   Few comments on th epatch follow:

1. Many error messages in OpenJPA not only tells what the error is, it also
tries to help what can be common cause of the error. From that standpoint,
the message
   no-meta: No registered metadata for type "{0}".
could be changed to something like
   no-meta: No registered metadata for class "{0}". This can happen if this
class has not been annotated as persistent entity or specified in the
persistence unit.

2. The test case can benefit from deriving from SingleEMFTest case and its
setUp(Object...args). There are many examples available in
openjpa-persistence-jdbc test package on its usage.

3. If SingleEMFTestCase is used, persistence.xml is not needed.

4. The comments just above where the new exception is raised should be
modified, as after this change it sounds contradictory.

-- 
View this message in context: http://n2.nabble.com/-jira--Created%3A-%28OPENJPA-819%29-NPE-when-no-metadata-is-defined-for-a-persistent-class-tp1631178p1663557.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.


Mime
View raw message