Skip to content
Advertisement

cannot resolve this error: unable to insert NULL in (“NAWFEL”. “ORDO_DEP_UUSATEUR”. “EMPLOI”)

I’m developing a user registration form, the problem I get is that when I want to test my web service in postman it shows me the following error in my eclipse console:

JavaScript

he tells me that I cannot insert a null value in the job “emploi” column, but I entered the value of the job column in my postman as you can see here:

postman

this is my entity code :

JavaScript

and this is my dao ( i use jpa) :

JavaScript

and this is my userService :

JavaScript

and this is my userServiceImpl :

JavaScript

and this is my controller :

JavaScript

and this is my table user (i use oracle 10g) :

table in oracle 10g

can someone help me please ??

Advertisement

Answer

Can you try to send them as an objects like this

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement