English 中文(简体)
Hibernate Library and Hibernate JPA Library
原标题:Difference between Hibernate library and Hibernate JPA library

在你能够把Hibernate图书馆添加到一个项目的屏幕上,有两种选择:Hibernate和Hibernate JPA。

两者之间有何区别? Googling没有提供解释。

最佳回答

I found this to provide a good explanation. http://elope.wordpress.com/2007/09/06/difference-between-jpa-and-hibernate/

From the above blog: So if i need to put in Concise words:

a) JPA是您的法典应当使用的Persistence Api。

b) JPA Api将接通电话给实际的永久提供者(ex:Hibernate/TopLink),以进行实际工作。

c) 如果你们从业绩的尊敬中来看待,则取决于实际的持久性提供者(Hibernate/TopLink),而不是JPA作为其唯一的总结层。

d) If you are looking from code dependency prespective ,JPA makes more sense as your code is dependent on standard Java Api.

e) 如果你使用Hibernate,那么你就会发现,在日本人民军中,某些特征像标准问询一样缺失。 这并不意味着你在申请中无法撰写标准询问,你需要从人民党实体经理那里获得会议反对,现在,你与解放项目一样好。

但是,现在你的法典取决于具体杂质(Hibernate),否则,你会看到更多的东西在《人民军》中加入(2.0)。

f) 如果你使用日本邮局: 我所认为的是你,非洲人民论坛是干净的,尽管你们的需要并非始终如一,而是向前迈出的良好一步。

问题回答

I don t know what "screen" you mean, but in general you can use Hibernate directly (Hibernate API) or as a JPA provider. As JPA is a standard API one can code against this API and switch between implementations (Hibernate, EclipseLink, OpenJPA, ...). When using Hibernate API you are tied to this but you can utilize features that are not standardized by JPA.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签