1 Reply Latest reply on Jan 17, 2008 11:48 AM by pmuir

    What am I using?

    hubaghdadi

      Hi.
      I'm trying to create a Seam application (JavaBeans and Hibernate), I use Seam's hibernate2 sample application as my guide.
      I annotated my domain objects with the usual annotations (@Entity, @OneToMany, @NotNull .....)
      I also use @NamedQueries annotations and inject Hibernate Session into my JavaBeans.
      But after a while it seems to me that I use JPA, not Hibernate!
      I'm now really confused, should I supply hibernate.cfg.xml or persistence.xml?
      I also want to generate the database schema via those annotations.
      Thanks.

        • 1. Re: What am I using?
          pmuir

          Use JPA unless you have a specific reason not to. If you need hibernate's extended set of annotations, or hbm you can still use it with JPA.