Hi @Mention Andrea Boriero,
I just upload a test which is represent the basic problem. The combination of hibernate 5 and hbm2ddl.auto=update do not create the foreign keys, but hibernate 4.3.10 do.