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