openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Bauer" <>
Subject Re: OpenJPA doesn't create table in embedded DerbyDB
Date Thu, 11 Sep 2008 14:23:21 GMT

According to the OpenJPA doc (section 1.3), "In order to enable
automatic runtime mapping, you must first list all your persistent
classes as described in Section 1, " Persistent Class List "."

It sounds like you want to be dynamic and thus avoid hard coding class
entries in your persistence.xml, so another option that may work for
you is use of the openjpa.MetaDataFactory property.  Try adding the
following property to your list of emf config properties.  It will
prompt metadata processing for the Statement class and then the
mapping tool will create the corresponding database artifacts.



View raw message