Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jpa without container

I like to use jpa, but without application container. I intend it to use it in console application.

Is there any example ?

Regards

like image 640
darpet Avatar asked Jul 11 '10 09:07

darpet


2 Answers

You can use JPA in a Java SE environmenet. Here are some examples:

  • Java Persistence APIs in Java SE - GlassFish.
  • Employee Examples using EclipseLink ORM.XML.
  • Persistence tutorial: JPA and Java SE with Netbeans.
like image 69
Pascal Thivent Avatar answered Oct 02 '22 00:10

Pascal Thivent


http://java.sun.com/developer/technicalArticles/J2SE/Desktop/persistenceapi/

like image 30
Romain Hippeau Avatar answered Oct 02 '22 00:10

Romain Hippeau