Note that there are some explanatory texts on larger screens.

plurals
  1. POToo many objects match the primary key oracle.jbo.Key
    primarykey
    data
    text
    <p>I am getting this error: <code>Too many objects match the primary key oracle.jbo.Key</code> when I tried to search in some view object where the <code>primary key</code> is consists of more than one filed.</p> <p><strong>Use-case:</strong></p> <p>In <code>Jdeveloper 11.1.2.3</code> I have <code>Entity object</code> called <code>someTable</code> this table has three fileds <code>A,B and C</code> where the <code>primary key</code> is consist of tow filed <code>A and B</code>. </p> <p>I created tow different <code>View object</code> from <code>someTable</code> enity object which are <code>someTableVO1</code> and <code>someTableVO2</code>. Filed <code>A</code> in the view object <code>somtableVO1</code> is a <code>List Of Value(LOV)</code> and the data is coming form filed <code>A</code> in the <code>someTableVO2</code>.</p> <p>In application I have a searching page which contain a drop down list for filed <code>A</code> in <code>somTableVO1</code>. Based on some conditions the drop down list values is not static. The value of the drop down list is changeable based on a <code>select</code> query executed on <code>someTableVO1</code> and it is based on the thried filed <code>C</code> which is <strong>NOT</strong> part of the <code>primary key</code>.</p> <p>The page shows the drop down list with the correct values. But, I have a <code>ValeChangeListener</code> method which will be activated when ever the user select some value form the drop down list.</p> <p><strong>The problem is:</strong> </p> <p>The error <code>Too many objects match the primary key</code> is occur when ever I am executing this method.</p> <p><strong>Assumption:</strong></p> <p>I think that the problem is with the multiple fields for the primary key. of curse there is a duplication in part of the <code>primary key</code> ( i.e in one filed <code>A</code> or <code>B</code>) but the combination of <code>A</code> and <code>B</code> is always unique. </p> <p><strong>Notes:</strong></p> <p><strong>1.</strong> I check the query by running it in <code>SQL Developer</code> and it is not showing any duplicate values.</p> <p><strong>2.</strong> I did not attach code, because I think the problem is not about (how to do) it is about (what to do).</p> <p>I hope the idea is clear </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload