How to call a postgres function with array of rowtype as parameter from Java application (the application is a Spring web application)?
Of course I can refactor my function and use several arrays of primitive types, but then on application side function call will be ugly.
CREATE OR REPLACE FUNCTION process_orders
(
order_array orders[]
)
RETURNS bigint AS
$BODY$
BEGIN
-- bla bla bla :)
RETURN 0;
END;
$BODY$
LANGUAGE plpgsql;