Hibernate Team |
|
Joined: Sun Sep 14, 2003 3:54 am Posts: 7256 Location: Paris, France
|
To be short
EJB session have no special link to DB.
It allows remote access, declarative transaction management, clustering, etc
EJB Entity map object world and Relational DB world, as Hibernate does. So yes EJB Entity and Hibernate do the same job
Entity pros:
- standard
- remote access (sorry must be a typo ;-))
- object pooling
- ...
Hibernate/JDO Pros:
- Entity are too Heavy
- no clear separation between object model and mapping mecanism
- can be used outside a J2EE container
- ...
So yes Hibernate and EJB are complementary
I personally use EJB Session and behind hibernate (no EJB Entity)
|
|