Please send your Questions & Answers or Feedback to ""

What are the differences between EJB 3.0 & Hibernate

Session–Cache or collection of loaded objects relating to a single unit of work.
XDoclet Annotations used to support Attribute Oriented Programming.
Defines HQL for expressing queries to the database.
Supports Entity Relationships through mapping files and annotations in JavaDoc.
Provides a Persistence Manager API exposed via the Session, Query, Criteria, and Transaction API.
Provides callback support through lifecycle, interceptor, and validatable interfaces.
Entity Relationships are unidirectional. Bidirectional relationships are implemented by two unidirectional relationships.

EJB 3.0
Persistence Context-Set of entities that can be managed by a given EntityManager is defined by a persistence unit
Java 5.0 Annotations used to support Attribute Oriented Programming
Defines EJB QL for expressing queries
Support Entity Relationships through Java 5.0 annotations
Provides and Entity Manager Interface for managing CRUD operations for an Entity
Provides callback support through Entity Listener and Callback methods
Entity Relationships are bidirectional or unidirectional
Related Posts Plugin for WordPress, Blogger...
Flag Counter