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

    What am I using?

    Hussein Baghdadi Novice

      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.