I'm using JDeveloper and ADF 12.2.1.
I have a table structure like this:
Contacts -----< ContactAddresses >----- Addresses
ContactAddresses has a column for the address type. Each Contact may have one or more ContactAddresses. While the table structure implies that this is a many to many, actually it is Contact as master with Addresses as details via ContactAddresses - each Address may be an address for one and only one contact. The reason for the intersection table is that there are other entities that have Addresses.
I'm creating an edit page for Contacts where you can update and add new addresses for the contact.
Right now, I have a VO named ContactAddressesView that references both ContactAddresses and Addresses (there is an Association between them). When I make both EOs as updateable, Change and Delete work fine. But Add - implemented as a CreateInsert action on ContactAddressesView, doesn't work.
I'm reading the docs in Fusion Developer's Guide for Oracle Application Development Framework 11gR2, section 42.9.1,
How to Programmatically Create New Rows With Multiple Updatable Entity Usages, and tried overriding the create method in the ViewRowImpl but that's giving a null exception. I'm supposing that I either need to do some of the other steps in that section, or another approach altogether, but the information in the manual isn't helping much with this. Anybody got a good example?
(By the way - is there a 12c version of this manual? If there is, I can't find it)