Skip to content
Advertisement

Tag: merge

executeUpdate() returns always 1 with MERGE statement

ExecuteUpdate() is always returning 1. Pls suggest and appreciate any input. Procedure: Java code: stmt.executeUpdate() – always returns 1, even though insertion happens only once. Appreciate any inputs on this. Ideally, if there are no insertions or errors, it should return 0 or any exception trace. Pls, suggest.** Answer We can make the column a primary key. Now when multiple

Merge map properties to Java POJO

I’d like to implement UPDATE (method PUT) operation for REST api. From front-end application my controller method expects map of values, for example: I’d like to use map as the request body and not POJO because with help opf map I can declare 3 states for each property: property is absent in the map – property is not change, do

Advertisement