如何调用 Oracle 函数或过程使用休眠 4 或 JPA 2
1个回答
展开全部
对于 Oracle 函数
实体类中定义的函数
@javax.persistence.NamedNativeQuery(name = "getFunc", query = "{? = call
my_function(:empName) }", resultClass = Employee.class, hints = {
@javax.persistence.QueryHint(name = "org.hibernate.callable", value = "true") })
实体类中定义的函数
@javax.persistence.NamedNativeQuery(name = "getFunc", query = "{? = call
my_function(:empName) }", resultClass = Employee.class, hints = {
@javax.persistence.QueryHint(name = "org.hibernate.callable", value = "true") })
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询