ADF报错 Failed to validate all rows in a transaction
来源:互联网 发布:决战平安京邀请码淘宝 编辑:程序博客网 时间:2024/06/08 15:11
Oracle ADF 在插入一条业务主键时 点保存后 报错误Failed to validate all rows in a transaction
分析了一下原因:
在EO中我已经做了EO唯一性校验 理论上是不可能出现这个现象的.
后来才发现是大小写的原因.
在页面两种转大写方法1种是js法,一种是在context转
context法:
只要在stype中设置
就可以了 在ADF中,设置属性 即可(实际上该value仍为小写)js法:
js代码
输入域事件在界面上 比如我在业务主键Code输入 haq 在context上调用Uppercase()
给我转成大写HAQ展现在UI上,但实际上 该Code仍然为小写的,
而在Managebean中我再次调用String 型的转大写功能存入数据库(数据库中该字段是存在唯一性校验的)
则会因为冲突而报错误
而在界面上按Shift输入haq 则直接进入EO校验
所以考虑 在JS中把用户界面输入的haq直接转成HAQ而不是在context里转.context转是无意义的.它只是界面看到的一种效果
另外JS中的转大写代码是在光标离开后才有变化,所以仍然要结合contextStyle的转大写.
- ADF报错 Failed to validate all rows in a transaction
- Getting all selected rows in ADF Table with multiple rows selection enabled
- ORACLE MERGE INTO语句,unable to get a stable set of rows in the source tables报错解决
- 安装Quality Center报错--Failed to validate database parameters
- get all rows count of all tables in a mysql database.
- Fastest way to estimate rows in a table
- failed to lazily initialize a collection of role:报错
- Elasticsearch 报错:failed to create a selector
- nginx端口占用,启动报错:bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way f
- jmail组件报错:'The message was undeliverable. All servers failed to receive the message '
- Hadoop datanode 无法启动,报错:java.io.IOException: All specified directories are failed to load.
- 转:How to submit the rows of a repeating table in InfoPath to a SharePoint list
- How to solve "Failed to locate the Google Cloud Messaging" in ADF Mobile deployment
- How to solve "Failed to locate the Google Cloud Messaging" in ADF Mobile deployment
- Fastest Way to Update Rows in a Large Table in SQL Server
- 【跟着stackoverflow学Pandas】How to iterate over rows in a DataFrame in Pandas-DataFrame按行迭代
- What goes in to the message of a transaction signature?
- 报错信息:Type mismatch: cannot convert from org.hibernate.Transaction to javax.transaction.Transaction
- DataAnnotation脱离MVC独立验证
- ThreeJS里支持哪种格式/导出方式
- 转义字符"\"使用和@在C#中用的妙用
- Android控件之ExpandableListView
- 从拼音输入法是汉字的一场灾难 看 什么是最“好”的产品设计
- ADF报错 Failed to validate all rows in a transaction
- OT源代码的分析,OrtHello 迟早攻破你 (七)第2个例子,碰撞和简单运动
- How to Write a Simple UnitTest Framework
- 分解命令行字符串为argc和argv
- .NET防SQL注入方法
- GCC扩展
- 要求用户输入两个任意两位0-9的数,然后输出这两个值的和
- (好玩)想追她?先算算你要等多久
- linux中的动态库和静态库