Actions can executed by selecting 1 or more Hibernate mapping files and right clicking. You will see a menu option called Hibernate Synchronizer.
After creating mapping files, you will need to add the reference to the configuration file. Hibernate Synchronizer provides a convenient way of doing that. Select all the mapping files that you would like to reference in your configuration file and use the Add Mapping Reference action.
If you have not used this action before in your project, you will be prompted to select your configuration file. Once you do that, the mapping references will be automatically added. When performing this action again, the configuration file will be stored.
The standard synchronization deals with single class only. There are some situations where you will want to reference multiple classes with a single template. You may do that by selecting as many mapping files as you want and executing this action.
All of the Velocity parameters from the standard synchronization will exist but a new parameter will be available:
By editing a Hibernate mapping file with the Hibernate Synchronizer editor, the objects will be synchronized when the file is saved. If you choose to use another editor, like an XML editor, this will not happen. In this situation, you would need to manually trigger the synchronization. This action will perform that operation for any files that are selected.
This action will act the same way as the Synchronize Files action but any project templates that are set not to be overridden will be overridden anyway.
Using this action will not only remove any selected Hibernate mapping file, but also any generated resource or class (custom template or default generated content) will be deleted as well.