I’d like to do some rapid prototyping with OpenJPA and I would like to use JPA annotations in my classes. I would like to run standalone (like from a main method). Can this be done?
So far I was able to run standalone but I had to use a mapping XML file that I pointed to from persistence.xml. The annotations were not being picked up automatically.
From official web page:
Check out the Getting started tutorial to find examples.