Three different folks from three different companies using ADF/BC4J have emailed me over the last 24 hours asking about implementing a view object where multiple, related entities are updateable. Seemed like a good excuse to put a pointer to this OTN How To article on the subject that I wrote some time back:
How to Implement a View Object with Multiple Updateable, Dependent Entity Objects
One caveat on using this technique is that with 9.0.3.4 and beyond, you should not programmatically force such a multiple-updateable-entity-usage view object to work in "Association Consistent" mode. By default, the framework will turn off the "Association Consistent" mode for VO's with more than one entity object usage that is not participating by reference. Programmatically forcing setAssociationConsistent(true) for these view objects will cause undesireable behavior.
7:46:41 AM
|