I'm new to OpenJPA and have looked in the docs and have searched this forum.
Apologies if I missed other posting on this. I'm working on an Eclipse RCP
application and would like to not bother with the persistence.xml file and
provide all the configuration through the properties provided to the
entitymanagerfactory.
first question I have: is it possible to run without the persistence.xml
file?
second, how do you specify the persistent entities you want openJPA to be
aware of? I'm able to configure the database settings I want, but
specifying "class" and "foo.bar" doesn't seem to register it. No
complaints, just doesn't do it. Example:
props.put("class", "foo.Message");
I have the same question about setting the provider in the properties. What
is the key value?
Thanks
bdh
--
View this message in context:
http://www.nabble.com/Doing-without-Persistence.xml-tp16304021p16304021.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.