Forums Register Login

Hibernate and EJB 3.0

+Pie Number of slices to send: Send
Cameron,
How are hibernate and ejb 3.0 related?
How do they overlap (or not)?
When would you choose one over the other?
+Pie Number of slices to send: Send
EJB provides an object relational mapping mechanism that uses JPA. Many people think Hibernate is based on EJB 3.0, or EJB 3.0 is based on Hibernate, which isn't true, although both technologies pull from many of the lessons learned over the past 5 or 6 years in the industry, and as such, they share a great many similarities.

I like the fact that Hibernate does not need an EJB container to run. This is especially helpful for my WebSphere clients that don't have access to an full version WebSphere EJB 3.0 server. This is always a big concern for clients.

-Cameron McKenzie
+Pie Number of slices to send: Send
I don't want to barge in on Cameron's parade (sorry, Cameron!), but I just need to clarify Cameron's answer, because I think it was a little misleading (unintentionally, I'm sure).

JPA doesn't need an EJB container any more than Hibernate does (although if you do have a container then JPA is much easier to use than the Hibernate API).

Cameron is quite correct that EJB 3.0 (the JPA part of it) was based on many products and technologies, including but not limited to Hibernate.
+Pie Number of slices to send: Send
is Hibernate annotations more advanced(more capabilities) than EJB 3.0annotations?
I know Hibernate annotations are based on EJB 3 annotations.
+Pie Number of slices to send: Send
Hibernate Annotations does offer some annotation "extensions" (for lack of a better description) that are Hibernate specific, and not part of the EJB 3.0 persistence specification.
[ June 04, 2008: Message edited by: Jelle Klap ]
+Pie Number of slices to send: Send
 

Originally posted by Jelle Klap:
Hibernate Annotations does offer some annotation "extensions" (for lack of a better description) that are Hibernate specific, and not part of the EJB 3.0 persistence specification.

[ June 04, 2008: Message edited by: Jelle Klap ]



So what are those annotations ?
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1069 times.
Similar Threads
Will Ejb3 make other technologies not used
EJB 3.0 and Hibernate
Hibernate and EJB 3 and 3.1
Do your bit to shackle the reputation of earlier EJB versions
Hibernate vs EJB 3.0
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:16:25.