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!

ADF/MySQL: Primary Keys and auto-increment

Brenden AnsteyJan 24 2005 — edited Jan 26 2005
Hi all,
I have been following Steve Andersons how-to on using ADF and MySQL have successfully created simple CRUD pages using UIX.

I have hit one snag related around the primary key and the absense of a true sequence object in MySQL. The table has a primary key defined as auto-increment in MySQL and flagged as a primary key in the ADO Entity Object.

I set the input field on the UIX page for the primary key field to read-only, but the catch is that the view object thinks that the primary key value needs to be supplied on insert and the the form does not pass JBO validation.

can anyone advise on how to make ADF auto-increment aware or advise on an alternate approach?

regards,
Brenden
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 23 2005
Added on Jan 24 2005
2 comments
522 views