java - mybatis insert and update index out of bounds error -


I have a mybitalis problem with the updated call. For some reason, I'm getting an index out of an exception exception:

  Reason by: com.microsoft.sqlserver.jdbc.SQLServerException: Index 1 is out of range   

I think the parameter is a type of map or archive. However, I pass it to a single object which I use the ratio of using the # {} syntax. I then call a straightforward update.

  & lt; Update id = "updateFactory" type statement = "CALLABLE" parameter type = "work order" & gt; Update wo SET factory = '# {factory}' WHERE work_order = '# {work_order}' & lt; / update>   

I know that the parameters meet with the gates and the setters, but it is still an issue, as a collection that treats the type of nickname dealing with the work order. (It seems that it receives the first index (0), but fails in the next (1 index).

Why could this be so, but no thoughts?

have you tried?

  & lt; update id = "updateFactory" parameterTap = "work order "> UPDATE wo SET factory = '# {factory}' WHERE work_order = '# {work_order}' & lt; / update & gt;    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -