Hi
As i understand it - i am also new to both EJB and Hibernate :-)
is that EJB is divided up into 3 main sections, i.e. Session EJB beans, Entity EJB beans and Message driven beans
Hibernate is a representation of database tables using
java classes i.e. using a database in an object orientated way.
Session beans are a single transaction with the user with no direct database involvement
Entity beans represent entities within a persistant storage (for example a database). Entity beans have direct database involvement and can use EJB-SQL.
Message beans are used by a client to send a message to a bean and doesnt really care if the data gets to the client or not.
Entity beans is most like Hibernate. So Hibernate represents 1 section out of 3 of EJB
EJB 2.0 doesnt use Hibernate so what i would (and plan to do) is to study and understand EJB 2.0 with SQL
The newest version of EJB (3.0) doesnt have SQL for Entity beans but rather uses Hibernate to do database involvement.
I hope the above helps :-)
Niall
[ March 24, 2007: Message edited by: Niall Loughnane ]