Oracle存储过程|弹簧数据

时间:2019-03-18 10:38:52

标签: spring spring-data-jpa oracle-sqldeveloper

我已经创建了一个带有游标和varchar2作为输出的oracle过程:

angles = []
a=<number too big to put here>    
b=<number too big to put here>    
c=<number too big to put here>      
angles.append(degrees(acos((decimal.Decimal(b) ** 2 + decimal.Decimal(c) ** 2 - decimal.Decimal(a) ** 2) / (2 * decimal.Decimal(b) * decimal.Decimal(c)))))
angles.append(degrees(acos((decimal.Decimal(c) ** 2 + decimal.Decimal(a) ** 2 - decimal.Decimal(b) ** 2) / (2 * decimal.Decimal(c) * decimal.Decimal(a)))))
angles.append(degrees(acos((decimal.Decimal(a) ** 2 + decimal.Decimal(b) ** 2 - decimal.Decimal(c) ** 2) / (2 * decimal.Decimal(a) * decimal.Decimal(b)))))

并且我还创建了我的实体类和存储库:

Traceback (most recent call last):
  File "G:/Python Projects/perfectTriangle1/testangle.py", line 13, in <module>
angles.append(degrees(acos((decimal.Decimal(b) ** 2 + decimal.Decimal(c) ** 2 - decimal.Decimal(a) ** 2) / (2 * decimal.Decimal(b) * decimal.Decimal(c)))))
decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]

请支持我如何定义NamedStoredProcedureQueries和存储库定义。

0 个答案:

没有答案