Hello,
I’m using Java Spring Boot to insert a record into a StarRocks database. The record is inserted successfully, but I get the following error:
“The database returned no natively generated values”
My id field is set as AUTO_INCREMENT, but after the insert, the id is not returned, and the exception is thrown.
I am using JPARepository for the operation, but the lack of the id return causes the operation to fail.
What I’ve Tried:
Verified AUTO_INCREMENT in the database.
Used @GeneratedValue(strategy = GenerationType.IDENTITY), but the issue persists.
I would appreciate any suggestions or solutions from anyone who has encountered this issue. Can you help me out?