When developing an ADF application, the system default primary key is unique, but the system-supplied error message is too ugly, so we can customize the error that the primary key is not unique.
In addition to the primary key is unique, sometimes we need to make a unique combination of other fields, such as a certain time, place, the combination of characters to become the only data, we have to pass the candidate key to constrain EO.
Next is the diagram:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/69/wKioL1bn1wCh895WAAFClz-rTcM162.png "style=" float: none; "title=" 1.png "alt=" Wkiol1bn1wch895waafclz-rtcm162.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/6B/wKiom1bn1nSgoMl6AABP-XssOys867.png "style=" float: none; "title=" 2.png "alt=" Wkiom1bn1nsgoml6aabp-xssoys867.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/6B/wKiom1bn1nWjc5xAAABz4lNl078450.png "style=" float: none; "title=" 3.png "alt=" Wkiom1bn1nwjc5xaaabz4lnl078450.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/69/wKioL1bn1wGDmvnlAACebanslls093.png "style=" float: none; "title=" 4.png "alt=" Wkiol1bn1wgdmvnlaacebanslls093.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/69/wKioL1bn1wGQ1MKiAACje54SO5g956.png "style=" float: none; "title=" 5.png "alt=" Wkiol1bn1wgq1mkiaacje54so5g956.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/6B/wKiom1bn1nWj9e4HAABU8LD4734756.png "style=" float: none; "title=" 6.png "alt=" Wkiom1bn1nwj9e4haabu8ld4734756.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7D/69/wKioL1bn1wGRgoL7AABwqrrintE411.png "style=" float: none; "title=" 7.png "alt=" Wkiol1bn1wgrgol7aabwqrrinte411.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7D/6B/wKiom1bn1naSn_-rAAAzg1R8Rnk760.png "style=" float: none; "title=" 8.png "alt=" Wkiom1bn1nasn_-raaazg1r8rnk760.png "/>
Finish.
This article is from the "ADF from getting Started to mastering" blog, so be sure to keep this source http://feitai.blog.51cto.com/9103016/1751409
ORACLE Adf:eo primary key unique, candidate key unique