You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by "Shenoy, Gourav Ganesh" <go...@indiana.edu> on 2017/08/01 14:31:20 UTC

Re: Implementation of JPA

Hi Apoorv,

Well it’s difficult to say which one is absolutely better over the other. But yes, generally Hibernate is considered to be more optimized for Persistence/Retrieval on average for large number of entities. Hibernate also offers more utility methods which at times simplifies the extra code you would have to write in OpenJPA. But I have used OpenJPA for a long enough time, and once you get beyond learning the functionalities you realize that it’s easier to deal with a minimal set of annotations in OpenJPA; whereas Hibernate has some extra wrapper annotations.

An important consideration is compatibility – OpenJPA annotations are certain to work with most JPA implementations, but not vice-versa. This plays a big role when you want to switch your JPA implementations (generally does not happen). Having said that, Hibernate has way more documentation and helpful sources online – if you’re facing any issues, etc.

Thanks and Regards,
Gourav Shenoy

From: Apoorv Palkar <ap...@aol.com>
Reply-To: "dev@airavata.apache.org" <de...@airavata.apache.org>
Date: Monday, July 31, 2017 at 10:03 AM
To: "dev@airavata.apache.org" <de...@airavata.apache.org>
Subject: Implementation of JPA

Dear Dev,

I'm currently developing the code for the registry to be used for the monitoring system in Airavata. I'm looking at the pros/cons of each JPA implementation and was wondering if anyone has any recommendations. I'm choosing between Hibernate, OpenJPA, and EclipseLink. I understand Hibernate is the most mature, widely used technology. I was trying to determine Hibernate's cons. Does anybody have previous knowledge about Hibernate ? My use case for the database(most likely MySQL DB) is to read/write/store data about experiment ID, name, and statuses.


Thanks,

A. Palkar

--shoutout marcus

Re: Implementation of JPA

Posted by Apoorv Palkar <ap...@aol.com>.
After talking to marcus/marlon, I've decided to go with just the JDBC implementation. I just need the ability to read/write to the MySQL DB. I didn't want to spend too much time learning the material required for JPA.


Palkar.



--shoutout Marcus 



-----Original Message-----
From: Shenoy, Gourav Ganesh <go...@indiana.edu>
To: dev <de...@airavata.apache.org>
Sent: Tue, Aug 1, 2017 10:31 am
Subject: Re: Implementation of JPA



Hi Apoorv,
 
Well it’s difficult to say which one is absolutely better over the other. But yes, generally Hibernate is considered to be more optimized for Persistence/Retrieval on average for large number of entities. Hibernate also offers more utility methods which at times simplifies the extra code you would have to write in OpenJPA. But I have used OpenJPA for a long enough time, and once you get beyond learning the functionalities you realize that it’s easier to deal with a minimal set of annotations in OpenJPA; whereas Hibernate has some extra wrapper annotations.
 
An important consideration is compatibility – OpenJPA annotations are certain to work with most JPA implementations, but not vice-versa. This plays a big role when you want to switch your JPA implementations (generally does not happen). Having said that, Hibernate has way more documentation and helpful sources online – if you’re facing any issues, etc.
 
Thanks and Regards,
Gourav Shenoy
 

From: Apoorv Palkar <ap...@aol.com>
Reply-To: "dev@airavata.apache.org" <de...@airavata.apache.org>
Date: Monday, July 31, 2017 at 10:03 AM
To: "dev@airavata.apache.org" <de...@airavata.apache.org>
Subject: Implementation of JPA

 

Dear Dev,

 

I'm currently developing the code for the registry to be used for the monitoring system in Airavata. I'm looking at the pros/cons of each JPA implementation and was wondering if anyone has any recommendations. I'm choosing between Hibernate, OpenJPA, and EclipseLink. I understand Hibernate is the most mature, widely used technology. I was trying to determine Hibernate's cons. Does anybody have previous knowledge about Hibernate ? My use case for the database(most likely MySQL DB) is to read/write/store data about experiment ID, name, and statuses.

 

 

Thanks,

 

A. Palkar 

 

--shoutout marcus