Can you post snippets of your Entities and your persistence.xml file? -Rick
On Mon, Jul 27, 2009 at 7:47 AM, pdd <[email protected]> wrote: > > Everything works with EclipseLink and TopLink but fails with OpenJPA. > > Tried with runtime as well as build time enhancement. The problem is the > entity class is a subclass. In this test case, it is an empty class which > inherits everything from the base class UserModelBaseImpl. > > ... > ... > ... > [openjpac] Caused by: java.io.IOException: org.xml.sax.SAXException: > file:/TestCase/build/web/WEB-INF/classes/META-INF/orm.xml [Location: Line: > 19, C: 18]: Could not find property/field with the name "id" in type > "com.example.model.impl.UserModelImpl".[java.lang.NoSuchMethodException: > com.example.model.impl.UserModelImpl.getId()] > ... > ... > ... > Caused by: java.lang.NoSuchMethodException: > com.example.model.impl.UserModelImpl.getId() > at java.lang.Class.getDeclaredMethod(Class.java:1937) > at > org.apache.openjpa.lib.util.J2DoPrivHelper$8.run(J2DoPrivHelper.java:288) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.parseField(XMLPersistenceMetaDataParser.java:1105) > ... 46 more > > The getId method exists in the parent class. In fact all methods/fields are > defined in the parent base implementation. The orm.xml specifies PROPERTY > access. > > Is this is a bug? > > > -- > View this message in context: > http://n2.nabble.com/enhancing-entity-which-is-a-subclass-tp3333612p3333612.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >
