Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 696259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:02:41+00:00 2026-05-14T03:02:41+00:00

I am new to Java Persistence API . I have just learnt it and

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:02:41+00:00Added an answer on May 14, 2026 at 3:02 am

    Q1. Which JPA implementation is smallest in size (as I want to have my application’s size as small as possible)?

    For JPA 1.0:

    • Hibernate Entity Manager 3.4.0.GA: ~4.9MB
    • EclipseLink 1.1.3: ~4.7MB
    • OpenJPA 1.2.2: ~2.7MB (I’m not sure for this one, not tested for now so I may be missing some jars)

    I would stay away from TopLink Essentials.

    For JPA 2.0:

    • DataNucleus 2.0.3: ~3.7MB
    • EclipseLink 1.2 and 2.0+: ~4.8MB
    • Hibernate Entity Manager 3.5.0-Final: ~5.8MB
    • OpenJPA 2.0.0-beta3: not measured (still in beta)

    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.

    Q2. How to find the value of the tag in the persistence.xml file.

    • DataNucleus: org.datanucleus.jpa.PersistenceProviderImpl
    • EclipseLink: org.eclipse.persistence.jpa.PersistenceProvider
    • Hibernate: org.hibernate.ejb.HibernatePersistence
    • OpenJPA: org.apache.openjpa.persistence.PersistenceProviderImpl
    • TopLink Essentials: oracle.toplink.essentials.PersistenceProvider
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just starting to learn Java database persistence using Hibernate ORM and have run
I have a Java web application that has a 'disconnected' Java Swing desktop app.
When creating a new Java project in IntelliJ IDEA, the following directories and files
Greeting All, I want to achieve transparent persistence of Java objects through memory-mapped files
I have a Java (6) application which uses Hibernate (V3.3.2) to read data from
To get more familiar with the new Java EE 6 System I have created
I decided to use Log4J logging framework for a new Java project. I am
So I have this username and password validation code using Java persistence. public Subscriber
I have the following entity class (in Groovy): import javax.persistence.Entity import javax.persistence.Id import javax.persistence.GeneratedValue
I have just started a Spring Roo application with Hibernate as a JPA2.0 provider.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.