Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hibernate: 5.4.0.Final
- PostgreSql: 9.6.6 (It would be an option to upgrade to latest version)
- CREATE OR REPLACE FUNCTION myFunction(param1 "A"[], param2 "B") RETURNS SETOF "C" AS $$
- BEGIN
- ......
- END;
- $$ LANGUAGE plpgsql;
- ProcedureCall call = session.createStoredProcedureCall("myFunction");
- call.registerParameter(1, <Type?>, ParameterMode.IN).bindValue(listOfEntities);
- call.registerParameter(2, EntityForTableB.class, ParameterMode.IN).bindValue(entityForTableB);
- ((ResultSetOutput)call.getOutputs().getCurrent()).getResultList();
- org.postgresql.util.PSQLException: ERROR: Function myFunction(bytea, bytea) does not exist
Add Comment
Please, Sign In to add comment