Business Component From A Database View Generates All Columns As Primary Key
(Doc ID 2593495.1)
Last updated on OCTOBER 20, 2022
Applies to:
Oracle JDeveloper - Version 12.2.1.0.0 and laterInformation in this document applies to any platform.
Symptoms
If a database view is used to generate as an Entity Object, it generates all columns as primary key
In 11g, JDeveloper does not behave the same way.
To reproduce the behavior follow these steps:
- Use the option to Create Business Components from Tables to create a new entity
- From the Data Dictionary, select a Database View that is based on a table
- After the Entity Object is generated, open its definition and select the Attributes tab.
- Notice that all the columns have the key icon next to its name, meaning it is considered as part of the PK
The same steps were followed in an earlier version (11.1.2.4,0) and the issue was not reproduced: the generated entity based on a database view did not include all columns as part of the PK. Only the field that is PK was shown as PK.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |