david wrote:
I can see you have tried a few JDBC drivers. In my experience is almost always the driver and usually on the latest stable driver for the DB version operates the best.
It is the driver that provides the meta data so that the tables and relationships are present. Check that your constraints are in place and correct . The try the JDBC Driver(s) where maybe you will need to code a small Meta data testing program to see what is being returned.
I figured out the problem after carefully reading Mysql manual that I need indexes for the relationships to work.