I am new to Java Persistence API. I have just learnt it and now want to use it in my Java Desktop Application. But I have the following questions regarding it:
Q1. Which JPA implementation is smallest in size (as I want to have my application’s size as small as possible)?
Q2. How to find the value of the <provider> tag in the persistence.xml file. I know that its value is vendor specific but I couldn’t find the value for the JPA implementation downloaded from here.
For JPA 1.0:
I would stay away from TopLink Essentials.
For JPA 2.0:
These measures have been done on my pet project (including dependencies except the JDBC driver). Personally, I wouldn’t base my choice on the size only, even for a desktop app.
org.datanucleus.jpa.PersistenceProviderImplorg.eclipse.persistence.jpa.PersistenceProviderorg.hibernate.ejb.HibernatePersistenceorg.apache.openjpa.persistence.PersistenceProviderImploracle.toplink.essentials.PersistenceProvider