Wednesday, 20 April 2016

Hibernate vs. Entity beans


In Hibernate, Session cache or collection of loaded objects relates to a single unit of work.
In EJB, Persistence Context-Set of entities that can be managed by a given EntityManager is defined by a persistence unit.

Hibernate defines HQL for expressing queries to the database.
EJB defines EJB QL for expressing queries.

In Hibernate, Relationships are unidirectional. Bidirectional relationships are implemented by two unidirectional relationships.
In Entity beans, Entity Relationships are bidirectional or unidirectional.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.