Hibernate Synchronizer
Hibernate Synchronizer is a free Eclipse plugin code
generation tool to be used with the Hibernate
persistence framework. The plugin will automatically generate java code when
your hibernate mapping files are modified. Objects are created with generated
code in an abstract base class and a user-modifiable extension class so user
code does not get deleted when the generation is performed.
The automaticallly generated objects include:
- Value Objects
- Proxy Interfaces
- Composite Key Objects
- Enumeration Objects
- Component Objects
- Subclasses
- DAOs
- Editor with code assist and outline view
- Custom template generation
- New mapping file wizard that queries your database
- New configuration file wizard
- Actions for adding mapping references, synchronizing files, and manually activating code generation
When your Hibernate mapping files are changed, the plugin will re-write the code in your business objects. Alternatively, you can use any editor of your choosing by manually launching the synchronization process if that is your prefrence.
Your custom code will not be deleted when the Java objects are regenerated because the structure for all objects are generated as abstract base classes (where the generated code is) and empty extension classes (where you put your code). When the synchronization process occurs, only the base classes will be modified.
How do I install this plugin?There are two different update sites for this plugin
- Eclipse 2.1: http://www.binamics.com/hibernatesync/eclipse2.1
- Eclipse 3M*: http://www.binamics.com/hibernatesync
If you are upgrading from a release prior to 2.2.0...
Please follow the instructions below. Your plugin will most likely not work
correctly without performing these steps if you are upgrading from a previous
version.
- remove all previous version of the plugin (in the eclipse/plugins directory)
- remove all previous version of the feature (in the eclipse/features directory)
- remove all files for every workspace located in the {workspace}/.hibernateSynchronizer/snippets directory
- restart Eclipse
Know click for more information.