Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JPA w/o application server

Tags:

java

jpa

I'm just writing a small java application and I would like to be able to persist the data model in a database. So I was wondering if I could use JPA for this. I used JPA some time ago, but as far as I remembered it required an application server. So I'm wondering can I just JPA to persists my classes w/o using an application server.

like image 251
Nils Avatar asked Jul 16 '10 10:07

Nils


2 Answers

Yes, you can use JPA without an application server. Here's a tutorial which may help you: TopLink JPA: How to use JPA with Java SE

like image 50
Boris Pavlović Avatar answered Oct 18 '22 15:10

Boris Pavlović


Yes, you can use JPA without any application server. Look at section 2.4 in this tutorial for Hibernate.

like image 40
Petar Minchev Avatar answered Oct 18 '22 14:10

Petar Minchev