so i use MySQL 8.0 and hibernate 5.4.25 which currently is the most stable version of hibernate,here is the code i wrote to create a foriegn key
@Entity @Tabl