简体   繁体   English

在Seam框架中从EJB调用Oracle函数

[英]Calling Oracle functions from EJB in Seam framework

I am using seam framework and struggling to call a Oracle function. 我正在使用seam框架并努力调用Oracle函数。 In my EJB, I am creating a namedQuery and when I call my entityManager.getResult() I get the following error: 在我的EJB中,我正在创建一个namedQuery,当我调用我的entityManager.getResult() ,出现以下错误:

PLS-00222: no function with name 'jjhg' exists in the scope. PLS-00222:范围中不存在名称为“ jjhg”的功能。

(jjhg is the name of my oracle function) (jjhg是我的oracle函数的名称)

There are a couple of things which might cause this: 有几件事可能导致此:

  1. JIHG is a procedure rather than a function. JIHG是一个过程而不是一个函数。
  2. JIHG is a private function which has been declared out of scope of the current block. JIHG是一个私有函数,已被声明超出当前块的范围。

As you're using a framework to call the program unit I suspect the first explanation is the more likely. 当您使用框架来调用程序单元时,我怀疑第一种解释更有可能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM