Persistence provided by Hibernate different from EJB 3.0
I am new with hibernate. And I am confused that how is the persistence pro开发者_StackOverflow中文版vided by Hibernate different from that provided by EJB?
Thanks in Advance !
JPA (Java Persistence API) is part of the EJB spec, so I'd assume you are talking about it.
JPA is only a specification - it has a couple of interfaces and annotations, but that's all - almost no code written. Then there are implementations of that specification, which do the actual orm handling. Hibernate is such an implementation.
Hibernate is one implementation of the JPA (EJB persistence) specification (among other). It thus provides everything specified in the JPA spec, but adds specific features on top of that.
精彩评论