Mule JPA persist is not inserting or updating

前端 未结 2 492
面向向阳花
面向向阳花 2021-01-25 04:38

I am using Mule JPA module for retrieving and insert/updating data. I can able retrieve data but not able to update the DB. Its giving no errors and as per the log it seems that

2条回答
  •  温柔的废话
    2021-01-25 05:02

    Here your console shows :- Hibernate: insert into contact (EMAIL, FIRSTNAME, LASTNAME) values (?, ?, ?) and your payload is :- {"firstName":"king","lastName":"verma","email":"vermaS@xxx.com","id":9} ... where this id:"9" will be accommodated ? your query has 3 fields firstname,lastname and email ..where as your payload contains firstname,lastname,email and id

提交回复
热议问题