JPA one-to-many delete and set foregn key to null
Unfortunately it is not currently possible to do this using JPA/Hibernate annotations. See these related questions:
Have JPA/Hibernate to replicate the "ON DELETE SET NULL" functionality
On delete set null in hibernate in @OneToMany