Bom dia,
Eu me loguei como chefe de transporte e ao tentar confirmar a saída de um veículo após ter autorizado a solicitação, ocorre o seguinte erro:
Erro: #{solicitacaoVeiculoBean.registrarSaida}: org.springframework.dao.DataIntegrityViolationException: could not insert: [br.org.sigafrota.entity.SolicitacaoVeiculo]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [br.org.sigafrota.entity.SolicitacaoVeiculo]Desde já agradeço o apoio.
Autor: marcus federico
22 comentários
Comando SQL equivalente:
ALTER TABLE sigafrota.tb_registrosolicitacaoveiculo ALTER COLUMN codregistroveiculo SET DEFAULT 1;