0 Replies Latest reply on Feb 7, 2009 7:03 PM by fredfred

    Latest JBoss Version and Hibernate/Hibernate Annotations Que

    fredfred


      Consider the following, from the JBoss EJB3 Tutorial:


      @OneToOne(cascade = {CascadeType.ALL})
      @JoinColumn(name = "ADDRESS_ID")
      public Address getAddress()
      {
      return address;
      }

      The above two annotations are applicable, using JBoss Libraries and Hibernate Libraries.

      If one wishes to use both JBoss EJB3 annotations, and Hibernate with Annotations,do annotations need to be used twice?

      How does Jboss/Hibernate Typically overlaps?

      I do nderstand javax.persistence.* , so:

      -When is one using JBoss and Hibernate/what do their annotations
      have in common?

      -When do I have to worry about the database in the background/
      what database ddl table creation do I have to worry about in the database
      background/backend?