Kevin,
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.
props.put("openjpa.MetaDataFactory",
"jpa(Types=\"com.dvelop.esb.esbruntime.service.persistenceservice.impl.openjpa.domain.Statement\")");
-Jeremy