1. change to javax.persistence.Foreignkey inspire of jpa 2.1
2. Model api: change key() to id_key()
3. update dendencies