How to call a custom Oracle function returning a value from JPA

后端 未结 5 491
暗喜
暗喜 2021-01-14 01:23

I have a custom function in oracle returning a number after deleting records. I could get a value in sql_plus such as

call my_function(4) into :out_number;
<         


        
5条回答
  •  不思量自难忘°
    2021-01-14 02:00

    If you are using EclipseLink you can use a StoredFunctionCall object to call a stored function such as this.

    You could also define it as a named query using the @NamedStoredFunctionQuery.

提交回复
热议问题