Could any one please explain how Entity beans store data in persistently.
What is advantage over JDBC. Please provide url Or you can explain.
Then how Hibernate in different from EJB (Entitybeans).
And in case of server crash How entity beans are useful...........
I don't think it is altogether reasonable to expect to answer these questions on a forum post. You may be best off picking up a good reference on EJB 3 or JPA. I don't know of any basic ones online, but the Sun Java EE 5 tutorial is decent.
In short, you write less low-level code in JPA than you do in JDBC. Hibernate 3 is a JPA implementation. JPA Entities do not automatically survive container crashes as EJB 2.x Entity Beans do.
Hope it helps,
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1