1 Reply Latest reply on May 14, 2007 8:21 AM by stephen.friedrich

    Using JavaBeans and Hibernate3

    ejbengine

      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?

        • 1. Re: Using JavaBeans and Hibernate3
          stephen.friedrich

          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.