Oracle 数据库唯一性索引在ADF EO中的表现
2012-07-03 23:41
323 查看
在数据库表test 中建unique index, 在用表test生成的EO中没有对应unqiue index的具体规则;
在数据库表test 中建unique key时,数据库会伴随生成对应的unique index, 此时用test表生成EO时,EO中有对应unique key的具体规则,具体如下:
<Key
Name="NetUn">
<DesignTime>
<Attr Name="_isUnique" Value="true"/>
<Attr Name="_DBObjectName" Value="NET_UN"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="com.test.hr.model.entities.TestEO3.Name"/>
<Item Value="com.test.hr.model.entities.TestEO3.Email"/>
<Item Value="com.test.hr.model.entities.TestEO3.Tel"/>
</AttrArray>
</Key>
在数据库表test 中建unique key时,数据库会伴随生成对应的unique index, 此时用test表生成EO时,EO中有对应unique key的具体规则,具体如下:
<Key
Name="NetUn">
<DesignTime>
<Attr Name="_isUnique" Value="true"/>
<Attr Name="_DBObjectName" Value="NET_UN"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="com.test.hr.model.entities.TestEO3.Name"/>
<Item Value="com.test.hr.model.entities.TestEO3.Email"/>
<Item Value="com.test.hr.model.entities.TestEO3.Tel"/>
</AttrArray>
</Key>
相关文章推荐
- Oracle Spacial(空间数据库)空间索引
- oracle 重建索引以及导出所有的索引脚本(可以解决还原数据库文件时先还原数据,在重新用脚本创建索引)
- 数据库使用-oracle位图索引
- Oracle sql 调优:使用虚拟索引在生产环境测试创建索引对数据库性能的影响
- 数据库表表面上存在索引和防错机制,然而一个简单的查询就会耗费很长时间。Web应用程序或许在开发环境中运行良好,但在产品环境中表现同样糟糕。如果你是个数据库管理员,你很有可能已经在某个阶段遇到上述情况。
- ORACLE的索引和约束详解数据库
- 并发事务下各数据库外部表现实测之二(Oracle篇)
- Oracle查询数据库的索引字段以及查询用索引
- [数据库] Navicat for Oracle设置唯一性和递增序列实验
- Oracle中主键、外键、索引、序列、唯一性约束的创建
- 【数据库】[oracle]表,视图,索引,序列,同义词等操作集合
- Oracle:查找表的主键,外键,唯一性约束,索引
- mysql、sqlserver、oracle三种数据库维护索引、外键、字段语法总结(转)
- ORACLE: 查询(看)表的主键、外键、唯一性约束和索引
- oracle 数据库模式对象,索引,序列,同义词,查看用户拥有的表,聚簇,数据库链接
- 数据库-Oracle主键约束和唯一索引的黑与白
- Oracle 数据库中B-tree索引的维护
- 为什么有时 Oracle 数据库不用索引来查找数据
- Oracle学习总结(7)—— 常用的数据库索引优化语句总结
- ORACLE: 查询(看)表的主键、外键、唯一性约束和索引