Ok. The generated Hibernate XML files clearly say “do not edit” because changes would be wiped out during synchronization. I see that the hibernate.cfg.xml file is synchronized each time you export a table, but when does synchronization happen for the *.hbm.xml mapping files? Is it only the first time or can I sync them up again with my base classes later on? It would be great to have round-trip engineering here where I could right-click on a mapping file and go “Hibernate->Synchronize” to keep the xml in sync with the Java code and vice versa.
My question is, sometimes the resulting files still need some modification to get the column types and entity-relational mappings right so I would like to find a way to update these files without having my changes wiped out. Can I provide my own custom Velocity templates (eg. for application or database-specific settings) or can I modify the existing ones? If so, a tutorial would be handy.