IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.

Once you have enabled JPA or Hibernate support and created persistence units or session factories, you can define mapping between the Java objects and data sources.

To map Java objects to a data source
  1. In the Persistence tool window, expand the desired module node.
  2. Right-click the desired persistence unit or session factory to generate mappings for, and choose Generate Persistence Mapping on the context menu.
  3. On the submenu, select the desired schema. You can opt to generate persistence mapping by:


You can create a mapping file in the ER diagram. To do that, just right-click the diagram background, choose New | Mapping file on the context menu, and populate this file in the editor as required.

See Also



Web Resources: