Take a look in quick start guide. There is a very good chapter dealing with cmp and relationships.
There are some plug-ins for different IDEs. Go to sourceforge for searching a plug-in for JBuilder, but I have heard that this plug-in does not generate good code for mapping file.
But I think, after looking in quick start, you should not have problems with relationship mapping any more.
Hope this helps.