Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Too many objects match the primary key

2805191Feb 5 2015 — edited Feb 6 2015

I am using Jdeveloper 11.1.1.7.0.

I am creating a input form. One of the fields is a af:inputListOfValues

I got the following error after selecting a value to insert into the field:
Too many objects match the primary key oracle.jbo.Key[1 ].
oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[1 ].

I override the create function in the EO Impl to set the primary key.
protected void create(AttributeList attributeList) {
this.setKey(1);
}


While debugging the problem, I realised that the create method is called several times before the error is thrown.
Why is this so? What have I done incorrectly?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2015
Added on Feb 5 2015
7 comments
715 views