In the example that uses only JavaBeans and Hibernate3 (and NOT EJB3) , the User.java , Booking.java , Hotel.java are all annotated with the @Entity annotation.Does'nt that make them EJB 3 entities?
The answer is a definitive maybe:
There is no such thing as an EJB 3.0 entity bean. The term "EJB entity" is only used for EJB 1.x/2.x.
Indeed @Entity makes the annotated class an Entity in the sense of the Java Persistence API (JPA).
Hibernate's entity manager is an implementation of the JPA.