Hibernate + Db2 + StoredProcedure调用,传递NULL值

时间:2017-04-07 13:24:06

标签: java hibernate stored-procedures db2 javax.persistence

是否可以使用Hibernate和Javax.Persistence在存储过程调用中传递空值?

我试图以这种方式做到这一点:

T obj; // my unique object

std::vector<T> vec; // I want to avoid this
vec.push_back(T);

// Because the only use of the container is for this call
call(std::begin(vec), std::end(vec));

// I want to do something like that
call(BeginFakeSingletonIt<T>(obj), EndFakeSingletonIt<T>());

但DB2告诉我:&#34;缺少必需参数&#34;。

有什么想法吗?

提前谢谢

0 个答案:

没有答案