Andrunevchyn

Andrunevchyn


notes and issue research

December 2017
M T W T F S S
« Oct   Apr »
 123
45678910
11121314151617
18192021222324
25262728293031

Categories


AssertionError on jdbc request

Andriy AndrunevchynAndriy Andrunevchyn

If you got such error on jdbc request

and you have no idea whats wrong on request just check your parameters. In my case I didn’t notice I passed enum value instead name of that value.  Seems SpringJdbc doesn’t know how to convert enum to String ((. The same issue appears if you try pass value of Instant class instead java.sql.Timestamp

P.S.

Tested on Spring5, Java 9. Save method looks like

should be

 

 

Comments 0
There are currently no comments.

Leave a Reply