Estou querendo pegar o id de uma outra tabela e associar a tabela na qual estou, no caso
So que quando dou o POST para criar um id novo e associar ao id de Equipment Model nao esta funcionando me retorna esse erro e nao consigo achar o motivo
2022-04-22 15:14:25.206 ERROR 3980 — [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [equipment_model_id" of relation "equipment]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement] with root cause
org.postgresql.util.PSQLException: ERROR: null value in column “equipment_model_id” of relation “equipment” violates not-null constraint
Detalhe: Failing row contains (363841f8-849d-4e0e-aae8-4699f5d19ab5, null, HB-3001).
Alguem poderia me dar alguma ajuda?