Java – which EJB 3 persistent provider should I use?

I use EJB 3 on a fairly large J2EE project. By default, NetBeans sets the persistence provider of entity beans to TopLink You can choose to change the provider to one of the following, or even add a new persistence Library:

>Sleep > kodo > openjpa

Which persistence provider do you prefer? What are the benefits of using other providers?

Although TopLink seems good, I can't find many good documents on how to control cache and so on Any help would be appreciated

Solution

I only consider using two JPA providers:

If you want to stick to standard JPA, I'll use eclipse link TopLink essentials is the reference implementation of JPA 1.0, while eclipselink basically inherits the TopLink essentials code and will become the reference implementation of JPA 2.0 (bundled with GlassFish V3 at the time of release; it is expected to revolve around JavaOne in May 2009) TopLink essentials is a paralyzed version of Oracle's commercial TopLink product, but eclipse link basically has all the functions of TopLink

Another option is obviously hibernate It is widely used and mature, but there are no problems I have seen For example, in the end, it seems that hibernate has problems with entities with multiple one - to - many desire relationships I don't know whether hibernate has the same function as the batch query prompt of eclipse link, but it is a very useful function to deal with such problems

Hibernate also supports standard JPA The biggest advantage of Hibernate is that if you have questions about how it works, Google search may find the answer

To be honest, I will not consider anything other than the above two providers

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>