This VS Code extension helps you generate Hibernate configuration files for your Java projects. It can:
- Create a
hibernate.cfg.xml
file in the root of your project. - Create individual Hibernate mapping files (
.hbm.xml
) for Java model classes.
-
Create Hibernate Configuration (
hibernate.cfg.xml
):- Run the command from the Command Palette (
Ctrl+Shift+P
) and search for "Create Hibernate Configuration (hibernate.cfg.xml)" to generate the Hibernate configuration file in your project root.
- Run the command from the Command Palette (
-
Create Hibernate Model Mapping (
.hbm.xml
):- Right-click on any Java model file in your project and select "Create Hibernate Model Mapping (.hbm.xml)" from the context menu to generate a Hibernate mapping file for that model.
- Open a Java project in VS Code.
- Use the Command Palette to generate the Hibernate configuration file or right-click on Java files to create model-specific mapping files.
To install the extension:
- Download the
.vsix
file. - In VS Code, open the Command Palette (
Ctrl+Shift+P
) and selectExtensions: Install from VSIX...
. - Select the
.vsix
file and install the extension.