I've used eclipselink in a web project in NetBeans. It works nice and easy. How can I do the same in a project unrelated to the web (console application)?
In my web application I have:
@PersistenceUnit
EntityManagerFactory enf;
Which instantiates enf. This does not work in a console application.