Skip to content
Advertisement

Batch update returned unexpected row count from update JAVA

When i try to add user throws next exception:

JavaScript

This is my entity:

JavaScript

}

This is my service:

JavaScript

Mapper for reg user:

JavaScript

I found some strange things like: when i dont set field ROLE in mapper i dont recive this excep; i create my DB with dates, and when i have it’s with nanos in db, i dont recive exception, but when i trim it in DB to millis, it’s start to throw it; it start throw after commitTransactionAfterReturning, so it’s a problem with transaction, but i dont understand what a problem, read a lot of articles, but not one help me.

Advertisement

Answer

Throwing an error because i manually set field dtUpdate which is annotated version. After i delete setDtUpdate in mapper, it’s work okay.

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