Spring Data JDBC @Modifying with PostgreSQL RETURNING to return data from modified rows

When you annotate the method with @Modifying it is executed it is executed as a DML statement which does not return any value except the number of rows updated.

If your statement returns a ResultSet you should not use @Modifying, so Spring Data JDBC tries to extract the ResultSet and create return values for the method from it.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top