One of the biggest chores using Hibernate / NHibernate is expressing relationships between tables, both in the configuration and in the methods that handle the relationship. Every so often, questions to the tune of "I save my parent, but the children don't get saved" appear in forums everywhere. Although there are a few Hibernate/NHibernate plugins for generating mappings directly in IDEs, many times people are unaware of them, or are unable to use them because of corporate policies regarding the development environment.
For all the above reasons, I wrote a quick hibernate mapping generator. It generates One-To-Many and Many-To-Many relationships as well as lifecycle methods so that relations between objects stay consistent. It can generate Hibernate configurations both using XML files and Annotations, and it can do it both for Java and for C# /.NET (NHibernate).
Note: Currently, the generator dos not generate one-to-one relationships.
To use this tool, simply type the names of the fields and tables in the following graphics representation and press "Generate". You will get a set of source files which you can then paste into your IDE