use entityManger.remove instead of jpa query to enable cascade delete.