You will have to use a foreign key on the database that uses `on delete set null`. If you don't want that or can't use that, you can use `@NotFound(IGNORE)` on the association to tell Hibernate to ignore the FK value if no target row can be found.