See the following StackOverflow post for details. In short, the problem is that the foreign key definition of @ForeignKey(foreignKeyDefinition = "BLABLA") is not taken into account for DDL generation.