This change also relates back to #1740 and #1744 and changes the way that issue was fixed (by SqlTreeNodeBean on partially populated non-id inheritance bean).
* #1837 - Inheritance on both sides of @ManyToOne confuses columns
* #1837 - Inheritance on both sides of @ManyToOne confuses columns
Tidy up whitespace in SQL