I want to record to databse with foreign key is null. I know SpringBoot don\'t allow do it. I tried record with @Query insert . But it cannot. I send data from client format