O'Reilly logo

Advanced Java® EE Development with WildFly® by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Hibernate XML Mapping file

Hibernate provides transparent mapping between a persistence class and a relational database using an XML mapping file. The actual storing and loading of objects of the persistence class is based on the mapping metadata. Perform the following steps to accomplish this:

  1. To create a Hibernate XML Mapping file, select File | New | Other.
  2. In the New window, select Hibernate | Hibernate XML Mapping File (hbm.xml) and click on Next, as shown in the following screenshot:
    Creating a Hibernate XML Mapping file

    The New Hibernate XML Mapping files wizard gets started. As we have not yet defined any persistence classes to map, we will first create an empty XML ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required