3 Replies Latest reply on Feb 11, 2008 2:28 AM by Nicklas Karlsson

    JBoss Seam DVDStore Example- Hibernate Mapping Question for

    pras mn Newbie

      I am a newbie into Seam/Hibernate world and very much impressed with the technologies. HAd a simple question on Hibernate mapping and would very much appreciate response.

      In the dvdstore example in Jboss Seam examples, the hibernate.cfg.xml does not have any *.hbm.xml for the entity classes and also does not have any mapping class entries. I was under the impression that 1 of them has to be present in the hibernate.cfg.xml file. Why is this not so? How are the entity classes mapped into the corresponding tables in the database? Is any other file apart from hibernate.cfg.xml used? Or is the schema auto-discovered bu Hibernate based on the annotations in the Java Entity classes?

      Any help deeply appreciated.